comparison utils.c @ 9379:d31c367da415 libavcodec

Make sure mpeg2 has its height rounded up to 32 as that is needed for interlaced stuff. This might have been exploitable when emu edge was not set though note this bug has been introduced just a few days ago.
author michael
date Fri, 10 Apr 2009 00:09:07 +0000
parents 54bc8a2727b0
children 141badec76fc
comparison
equal deleted inserted replaced
9378:52c348a0740f 9379:d31c367da415
142 case PIX_FMT_YUVJ422P: 142 case PIX_FMT_YUVJ422P:
143 case PIX_FMT_YUVJ444P: 143 case PIX_FMT_YUVJ444P:
144 case PIX_FMT_YUVA420P: 144 case PIX_FMT_YUVA420P:
145 w_align= 16; //FIXME check for non mpeg style codecs and use less alignment 145 w_align= 16; //FIXME check for non mpeg style codecs and use less alignment
146 h_align= 16; 146 h_align= 16;
147 if(s->codec_id == CODEC_ID_MPEG2VIDEO)
148 h_align= 32; // interlaced is rounded up to 2 MBs
147 break; 149 break;
148 case PIX_FMT_YUV411P: 150 case PIX_FMT_YUV411P:
149 case PIX_FMT_UYYVYY411: 151 case PIX_FMT_UYYVYY411:
150 w_align=32; 152 w_align=32;
151 h_align=8; 153 h_align=8;