divx503 decoding fix
[ffmpeg.git] / libavcodec / h263dec.c
index a5dadeec4ac5e20a6c7f7299c3bb442e289c036a..89f606b216c06792859bdabb7e3eeb0b38241fad 100644 (file)
 #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 @@ static int decode_slice(MpegEncContext *s){
 //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 @@ static int decode_slice(MpegEncContext *s){
         
         ff_draw_horiz_band(s);
         
-        PRINT_QP("%s", "\n");
-        
         s->mb_x= 0;
     }
     
@@ -495,6 +486,10 @@ retry:
             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;