Re: [FFmpeg-devel] [PATCH v2 1/6] avcodec/flashsvenc: Fix packet size calculation

2022-11-22 Thread Andreas Rheinhardt
Andreas Rheinhardt: > 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

[FFmpeg-devel] [PATCH v2 1/6] avcodec/flashsvenc: Fix packet size calculation

2022-11-20 Thread Andreas Rheinhardt
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,