Mercurial > libavcodec.hg
diff mpegvideo.c @ 9362:fc417197fe11 libavcodec
Fix mb_height for interlaced mpeg2.
This correctly fixes issue961, thanks to steven warren for spotting my mistake.
author | michael |
---|---|
date | Wed, 08 Apr 2009 20:48:44 +0000 |
parents | b5c30624da37 |
children | 638187aad3aa |
line wrap: on
line diff
--- a/mpegvideo.c Wed Apr 08 20:26:18 2009 +0000 +++ b/mpegvideo.c Wed Apr 08 20:48:44 2009 +0000 @@ -444,6 +444,9 @@ { int y_size, c_size, yc_size, i, mb_array_size, mv_table_size, x, y, threads; + if(s->codec_id == CODEC_ID_MPEG2VIDEO && !s->progressive_sequence) + s->mb_height = (s->height + 31) / 32 * 2; + else s->mb_height = (s->height + 15) / 16; if(s->avctx->pix_fmt == PIX_FMT_NONE){