aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-02-02 23:34:30 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-02-02 23:34:30 +0000
commit36df88058135607162d25b73cab93e19b0a8cb76 (patch)
treeef1e8fa9fc8e4427d9684439e262ee6245040dad /libavcodec/h263dec.c
parentfa7773216ad6091edbabfc2d3d2a3ef4f6128094 (diff)
downloadffmpeg-36df88058135607162d25b73cab93e19b0a8cb76.tar.gz
divx503 decoding fix
Originally committed as revision 1538 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index a5dadeec4a..89f606b216 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -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 @@ 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;