[FFmpeg-cvslog] r18405 - trunk/libavcodec/utils.c
michael
subversion
Fri Apr 10 02:09:08 CEST 2009
Author: michael
Date: Fri Apr 10 02:09:07 2009
New Revision: 18405
Log:
Make sure mpeg2 has its height rounded up to 32 as that is needed
for iterlaced stuff.
This might have been exploitable when emu edge was not set though
note this bug has been introduced just a few days ago.
Modified:
trunk/libavcodec/utils.c
Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c Thu Apr 9 23:53:48 2009 (r18404)
+++ trunk/libavcodec/utils.c Fri Apr 10 02:09:07 2009 (r18405)
@@ -144,6 +144,8 @@ void avcodec_align_dimensions(AVCodecCon
case PIX_FMT_YUVA420P:
w_align= 16; //FIXME check for non mpeg style codecs and use less alignment
h_align= 16;
+ if(s->codec_id == CODEC_ID_MPEG2VIDEO)
+ h_align= 32; // interlaced is rounded up to 2 MBs
break;
case PIX_FMT_YUV411P:
case PIX_FMT_UYYVYY411:
More information about the ffmpeg-cvslog
mailing list