aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-04-12 00:02:11 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-04-14 18:38:55 +0200
commitc3047da646bee6eeaac505fa11cfc97eaffa2286 (patch)
tree0605cb0f7e99a74e22585117567aa1a9b6cd52b8 /libavformat
parent4487dd8bb5b3f34cf5d8601a331387f56319f594 (diff)
downloadffmpeg-c3047da646bee6eeaac505fa11cfc97eaffa2286.tar.gz
avcodec/mpegvideo_enc: Fix unnecessary linear growth of buffer
If one encodes MJPEG with a single slice and uses input with AV_FRAME_DATA_ICC_PROFILE side data, the current allocation code in ff_mpv_encode_picture() will always increase the size of the temporary buffer used for allocating packets by the size needed for to write the ICC chunk even when the current buffer is actually large enough. This commit fixes this. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
0 files changed, 0 insertions, 0 deletions