Re: [FFmpeg-devel] [PATCH] avcodec/mpegvideo_enc: Don't copy non-existent padding

2023-12-24 Thread Andreas Rheinhardt
Andreas Rheinhardt: > The allocated buffer of an AVFrame need not be height * linesize > big. In case there is padding between lines, the last line need > not have this padding. Pathological examples exist with height == 1 > (where linesize is not really meaningful); non-pathological examples > are

[FFmpeg-devel] [PATCH] avcodec/mpegvideo_enc: Don't copy non-existent padding

2023-12-22 Thread Andreas Rheinhardt
The allocated buffer of an AVFrame need not be height * linesize big. In case there is padding between lines, the last line need not have this padding. Pathological examples exist with height == 1 (where linesize is not really meaningful); non-pathological examples are produced by the separatefield