Changeset 66959831 in ffmpeg
- Timestamp:
-
Nov 23, 2022, 9:44:09 PM
(2 years ago)
- Author:
- Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
- Branches:
- master
- Children:
- 44c09e8
- Parents:
- 715bf350
- git-author:
- Andreas Rheinhardt <andreas.rheinhardt@outlook.com> (11/19/22 01:12:02)
- git-committer:
- Andreas Rheinhardt <andreas.rheinhardt@outlook.com> (11/23/22 21:44:09)
- Message:
-
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>
-
(No files)
-