Commit e14130be authored by michael's avatar michael

use libmpeg2 idct to decode xvid videos unless the user forced some other idct


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3251 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 49bbd0ec
...@@ -624,6 +624,10 @@ retry: ...@@ -624,6 +624,10 @@ retry:
} }
#endif #endif
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)){
avctx->idct_algo= FF_IDCT_LIBMPEG2MMX;
avctx->width= 0; // force reinit
}
/* After H263 & mpeg4 header decode we have the height, width,*/ /* After H263 & mpeg4 header decode we have the height, width,*/
/* and other parameters. So then we could init the picture */ /* and other parameters. So then we could init the picture */
/* FIXME: By the way H263 decoder is evolving it should have */ /* FIXME: By the way H263 decoder is evolving it should have */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment