aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bmp.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-11-19 02:12:02 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-11-23 22:44:09 +0100
commit66959831114f13bfc2a2c0f3e976ad46b0358538 (patch)
tree50ea45c6a63911b6ab4806377c569055133e874f /libavcodec/bmp.c
parent715bf3509a96ee679449c0ba479b500fa646c217 (diff)
downloadffmpeg-66959831114f13bfc2a2c0f3e976ad46b0358538.tar.gz
avcodec/flashsvenc: Fix packet size calculation
The earlier code did not account for the frame header as well as the block headers; furthermore, in case a large part of a block is unused (due to padding), the output size may exceed 3 * width * height (where the dimensions correspond to the visible pixels) due to the overhead of the zlib header, so use the padded dimensions to calculate the maximum packet size (which is also what the actual call to compress2() uses). Fixes ticket #10053. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/bmp.c')
0 files changed, 0 insertions, 0 deletions