mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-21 05:21:09 +01:00
VC-1 can switch from between being progressive and interlaced on a per-frame basis. In the latter case, the number of macroblocks is aligned to two (or equivalently, the height to 32); therefore certain buffers are allocated for the bigger mb_height (see950fb8acb4and017e234c20). This commit changes how this is done: Aligning these buffers is restricted to VC-1 and it is done directly by aligning mb_height (but not MpegEncContext.mb_height) instead of adding something in an ad-hoc manner. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>