Mercurial > libavcodec.hg
diff h263dec.c @ 2004:ec6bfd8d92fc libavcodec
support decoding mpeg4 with buggy dc clipping
author | michael |
---|---|
date | Wed, 05 May 2004 19:53:40 +0000 |
parents | b5753525f9a8 |
children | 141a9539e270 |
line wrap: on
line diff
--- a/h263dec.c Wed May 05 00:14:22 2004 +0000 +++ b/h263dec.c Wed May 05 19:53:40 2004 +0000 @@ -548,6 +548,9 @@ if(s->xvid_build && s->xvid_build<=12) s->workaround_bugs|= FF_BUG_EDGE; + if(s->xvid_build && s->xvid_build<=32) + s->workaround_bugs|= FF_BUG_DC_CLIP; + #define SET_QPEL_FUNC(postfix1, postfix2) \ s->dsp.put_ ## postfix1 = ff_put_ ## postfix2;\ s->dsp.put_no_rnd_ ## postfix1 = ff_put_no_rnd_ ## postfix2;\ @@ -562,6 +565,9 @@ if(s->lavc_build && s->lavc_build<4670){ s->workaround_bugs|= FF_BUG_EDGE; } + + if(s->lavc_build && s->lavc_build<=4712) + s->workaround_bugs|= FF_BUG_DC_CLIP; if(s->divx_version) s->workaround_bugs|= FF_BUG_DIRECT_BLOCKSIZE;