[FFmpeg-devel] [HACK] fix H.264 interlaced cropping
Tue Oct 26 20:28:57 CEST 2010
On Sat, Oct 09, 2010 at 06:41:57PM +0200, Reimar D?ffinger wrote:
> 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
Ping? Should I open a roundup bug for this so it won't get lost?
More information about the ffmpeg-devel