[FFmpeg-devel] [HACK] fix H.264 interlaced cropping

Reimar Döffinger Reimar.Doeffinger
Sat Oct 9 18:41:57 CEST 2010

currently for interlaced FFmpeg calls anything with more than 14 pixels
vertical cropping "brainfart", however that is wrong since cropping up
to 28 pixels is necessary to be able to encode "any" resolution for
interlaced (since coded height to my knowledge is a multiple of 32 -
well, at least or PAFF).
Attached patch works for me, however at least the mpegvideo part is quite
hacky (it's a bit silly, the H.264 decoder sets the mb_width and mb_height
values, but MPV_common_init overwrites them later and in the case of
interlacing and mb_height with the wrong one).
Sample is here: http://samples.mplayerhq.hu/V-codecs/h264/interlaced_crop.mp4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crop.diff
Type: text/x-diff
Size: 2331 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101009/28e2a28f/attachment.diff>

More information about the ffmpeg-devel mailing list