diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2003-03-21 12:26:05 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2003-03-21 12:26:05 +0000 |
commit | b255ed200ac2f628c82e6e5420e0a8f310003a78 (patch) | |
tree | b7e425338dc95c215df3df00616c319889bc2d05 /src/libffmpeg/libavcodec/h263dec.c | |
parent | fab960c330cfedd8cdd1476b42394353dccd50f1 (diff) | |
download | xine-lib-b255ed200ac2f628c82e6e5420e0a8f310003a78.tar.gz xine-lib-b255ed200ac2f628c82e6e5420e0a8f310003a78.tar.bz2 |
libavcodec divx/xvid qpel bug workaround ported from ffmpeg cvs
CVS patchset: 4458
CVS date: 2003/03/21 12:26:05
Diffstat (limited to 'src/libffmpeg/libavcodec/h263dec.c')
-rw-r--r-- | src/libffmpeg/libavcodec/h263dec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libffmpeg/libavcodec/h263dec.c b/src/libffmpeg/libavcodec/h263dec.c index ff3773bed..5f6454d5a 100644 --- a/src/libffmpeg/libavcodec/h263dec.c +++ b/src/libffmpeg/libavcodec/h263dec.c @@ -497,6 +497,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; @@ -509,6 +513,9 @@ retry: if(s->xvid_build && s->xvid_build<=1) s->workaround_bugs|= FF_BUG_QPEL_CHROMA; + if(s->xvid_build && s->xvid_build>=8) + s->workaround_bugs|= FF_BUG_QPEL_CHROMA2; + #define SET_QPEL_FUNC(postfix1, postfix2) \ s->dsp.put_ ## postfix1 = ff_put_ ## postfix2;\ s->dsp.put_no_rnd_ ## postfix1 = ff_put_no_rnd_ ## postfix2;\ |