changeset 2554:84a8f374bf63 libavcodec

fixing playback of xvid pretending to be divx (sample_vop_nc.avi)
author michael
date Tue, 08 Mar 2005 14:39:58 +0000
parents 48c1b17233e8
children d69789acdbc4
files h263.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Mon Mar 07 09:05:33 2005 +0000
+++ b/h263.c	Tue Mar 08 14:39:58 2005 +0000
@@ -5991,7 +5991,7 @@
         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