Mercurial > libavcodec.hg
comparison h263dec.c @ 2977:49c6f104a76f libavcodec
also autodetect xvid idct if bitexact is used
author | michael |
---|---|
date | Wed, 21 Dec 2005 15:51:45 +0000 |
parents | 383eee00b898 |
children | 0b546eab515d |
comparison
equal
deleted
inserted
replaced
2976:b5e8b6821274 | 2977:49c6f104a76f |
---|---|
635 fprintf(f, "%d %d %f\n", buf_size, s->qscale, buf_size*(double)s->qscale); | 635 fprintf(f, "%d %d %f\n", buf_size, s->qscale, buf_size*(double)s->qscale); |
636 } | 636 } |
637 #endif | 637 #endif |
638 | 638 |
639 #if defined(HAVE_MMX) && defined(CONFIG_GPL) | 639 #if defined(HAVE_MMX) && defined(CONFIG_GPL) |
640 if(s->codec_id == CODEC_ID_MPEG4 && s->xvid_build && avctx->idct_algo == FF_IDCT_AUTO && (mm_flags & MM_MMX) && !(s->flags&CODEC_FLAG_BITEXACT)){ | 640 if(s->codec_id == CODEC_ID_MPEG4 && s->xvid_build && avctx->idct_algo == FF_IDCT_AUTO && (mm_flags & MM_MMX)){ |
641 avctx->idct_algo= FF_IDCT_XVIDMMX; | 641 avctx->idct_algo= FF_IDCT_XVIDMMX; |
642 avctx->coded_width= 0; // force reinit | 642 avctx->coded_width= 0; // force reinit |
643 // dsputil_init(&s->dsp, avctx); | 643 // dsputil_init(&s->dsp, avctx); |
644 s->picture_number=0; | 644 s->picture_number=0; |
645 } | 645 } |