From c1e292ea9137e7877131c2cf7be651d5273b6b62 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 8 Mar 2005 14:39:58 +0000 Subject: [PATCH] fixing playback of xvid pretending to be divx (sample_vop_nc.avi) Originally committed as revision 4021 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 d0a6e95347..645c9b9dba 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -5991,7 +5991,7 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb) startcode = ((startcode << 8) | v) & 0xffffffff; if(get_bits_count(gb) >= gb->size_in_bits){ - if(gb->size_in_bits==8 && s->divx_version){ + if(gb->size_in_bits==8 && (s->divx_version || s->xvid_build)){ av_log(s->avctx, AV_LOG_ERROR, "frame skip %d\n", gb->size_in_bits); return FRAME_SKIPED; //divx bug }else