Mercurial > libavcodec.hg
diff h263dec.c @ 761:7f4cc2f6d642 libavcodec
xvid qpel bug autodetect
author | michaelni |
---|---|
date | Tue, 22 Oct 2002 19:48:52 +0000 |
parents | e858fe220ce0 |
children | 339db642859d |
line wrap: on
line diff
--- a/h263dec.c Tue Oct 22 18:55:20 2002 +0000 +++ b/h263dec.c Tue Oct 22 19:48:52 2002 +0000 @@ -376,6 +376,13 @@ if(s->divx_version){ s->workaround_bugs|= FF_BUG_QPEL_CHROMA; } + + if(s->avctx->fourcc == ff_get_fourcc("XVID") && s->xvid_build==0) + s->workaround_bugs|= FF_BUG_QPEL_CHROMA; + + if(s->xvid_build && s->xvid_build<=1) + s->workaround_bugs|= FF_BUG_QPEL_CHROMA; + //printf("padding_bug_score: %d\n", s->padding_bug_score); #if 0 if(s->divx_version==500)