On Wed, Apr 08, 2009 at 03:09:02PM -0700, Baptiste Coudurier wrote: [...]
Modified: trunk/libavcodec/mpegvideo.c ============================================================================== --- trunk/libavcodec/mpegvideo.c Wed Apr 8 22:26:18 2009 (r18380) +++ trunk/libavcodec/mpegvideo.c Wed Apr 8 22:48:44 2009 (r18381) @@ -444,6 +444,9 @@ av_cold int MPV_common_init(MpegEncConte { 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){
Would you mind if I reindent the code ?
feel free to fix as much wrong indention as you like, iam always happy if i dont have to :) (note i mean just really wrong, i dont mean nitpicking about { and spaces before and after and such)
Also this apply to last commit for mpegvideo.h about this issue. Is the fix still needed/wanted ?
the last fix is still wanted, yes [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The misfortune of the wise is better than the prosperity of the fool. -- Epicurus