diff h263dec.c @ 1048:75a659fae7e0 libavcodec

divx503 decoding fix
author michaelni
date Sun, 02 Feb 2003 23:34:30 +0000
parents 9fbad5cf7e9e
children f07fd48c23d4
line wrap: on
line diff
--- a/h263dec.c	Sun Feb 02 19:53:01 2003 +0000
+++ b/h263dec.c	Sun Feb 02 23:34:30 2003 +0000
@@ -20,12 +20,6 @@
 #include "dsputil.h"
 #include "mpegvideo.h"
 
-#if 1
-#define PRINT_QP(a, b) {}
-#else
-#define PRINT_QP(a, b) printf(a, b)
-#endif
-
 //#define DEBUG
 //#define PRINT_FRAME_TIME
 #ifdef PRINT_FRAME_TIME
@@ -205,7 +199,6 @@
 //printf("%d %d %06X\n", ret, get_bits_count(&s->gb), show_bits(&s->gb, 24));
             ret= s->decode_mb(s, s->block);
             
-            PRINT_QP("%2d", s->qscale);
             MPV_decode_mb(s, s->block);
 
             if(ret<0){
@@ -239,8 +232,6 @@
         
         ff_draw_horiz_band(s);
         
-        PRINT_QP("%s", "\n");
-        
         s->mb_x= 0;
     }
     
@@ -495,6 +486,10 @@
             s->workaround_bugs|= FF_BUG_QPEL_CHROMA;
         }
 
+        if(s->divx_version>502){
+            s->workaround_bugs|= FF_BUG_QPEL_CHROMA2;
+        }
+
         if(s->avctx->fourcc == ff_get_fourcc("XVID") && s->xvid_build==0)
             s->workaround_bugs|= FF_BUG_QPEL_CHROMA;