On Thu, Apr 09, 2009 at 02:09:08AM +0200, Michael Niedermayer wrote:
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)
Done. [...] -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA checking for life_signs in -lkenny... no FFmpeg maintainer http://www.ffmpeg.org