Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
2003:16ac9630317d | 2004:ec6bfd8d92fc |
---|---|
546 s->workaround_bugs|= FF_BUG_QPEL_CHROMA; | 546 s->workaround_bugs|= FF_BUG_QPEL_CHROMA; |
547 | 547 |
548 if(s->xvid_build && s->xvid_build<=12) | 548 if(s->xvid_build && s->xvid_build<=12) |
549 s->workaround_bugs|= FF_BUG_EDGE; | 549 s->workaround_bugs|= FF_BUG_EDGE; |
550 | 550 |
551 if(s->xvid_build && s->xvid_build<=32) | |
552 s->workaround_bugs|= FF_BUG_DC_CLIP; | |
553 | |
551 #define SET_QPEL_FUNC(postfix1, postfix2) \ | 554 #define SET_QPEL_FUNC(postfix1, postfix2) \ |
552 s->dsp.put_ ## postfix1 = ff_put_ ## postfix2;\ | 555 s->dsp.put_ ## postfix1 = ff_put_ ## postfix2;\ |
553 s->dsp.put_no_rnd_ ## postfix1 = ff_put_no_rnd_ ## postfix2;\ | 556 s->dsp.put_no_rnd_ ## postfix1 = ff_put_no_rnd_ ## postfix2;\ |
554 s->dsp.avg_ ## postfix1 = ff_avg_ ## postfix2; | 557 s->dsp.avg_ ## postfix1 = ff_avg_ ## postfix2; |
555 | 558 |
560 s->workaround_bugs|= FF_BUG_DIRECT_BLOCKSIZE; | 563 s->workaround_bugs|= FF_BUG_DIRECT_BLOCKSIZE; |
561 | 564 |
562 if(s->lavc_build && s->lavc_build<4670){ | 565 if(s->lavc_build && s->lavc_build<4670){ |
563 s->workaround_bugs|= FF_BUG_EDGE; | 566 s->workaround_bugs|= FF_BUG_EDGE; |
564 } | 567 } |
568 | |
569 if(s->lavc_build && s->lavc_build<=4712) | |
570 s->workaround_bugs|= FF_BUG_DC_CLIP; | |
565 | 571 |
566 if(s->divx_version) | 572 if(s->divx_version) |
567 s->workaround_bugs|= FF_BUG_DIRECT_BLOCKSIZE; | 573 s->workaround_bugs|= FF_BUG_DIRECT_BLOCKSIZE; |
568 //printf("padding_bug_score: %d\n", s->padding_bug_score); | 574 //printf("padding_bug_score: %d\n", s->padding_bug_score); |
569 if(s->divx_version==501 && s->divx_build==20020416) | 575 if(s->divx_version==501 && s->divx_build==20020416) |