]> git.sesse.net Git - ffmpeg/commit
avcodec/avcodec: Use AVBPrint in avcodec_string()
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 21 Mar 2021 07:05:14 +0000 (08:05 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 24 Mar 2021 07:00:57 +0000 (08:00 +0100)
commit54127cc427920e48921e05e328d9ce475ae9d38d
tree153b1810ad710dde624deca6d6b83e932cfeaa6b
parente65a5df4faf60f08b39381651b61ace6998eee3d
avcodec/avcodec: Use AVBPrint in avcodec_string()

It automatically records the current length of the string,
whereas the current code contains lots of instances of
snprintf(buf + strlen(buf), buf_size - strlen(buf), ...).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/avcodec.c