From 3f26d68aecb1cec054cde548e341ffaf82fa2748 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 6 Feb 2005 18:43:06 +0000 Subject: [PATCH] emulate (idiotic) MS behavior for inconsistant dimensions Originally committed as revision 3940 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h263.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 4adc362c38..ad496344b9 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -5538,7 +5538,7 @@ static int decode_vol_header(MpegEncContext *s, GetBitContext *gb){ skip_bits1(gb); /* marker */ height = get_bits(gb, 13); skip_bits1(gb); /* marker */ - if(width && height){ /* they should be non zero but who knows ... */ + if(width && height && !(s->width && s->avctx->codec_tag == ff_get_fourcc("MP4S"))){ /* they should be non zero but who knows ... */ s->width = width; s->height = height; // printf("width/height: %d %d\n", width, height);