changeset 2094:9c29987380e4 libavcodec

use libmpeg2 idct to decode xvid videos unless the user forced some other idct
author michael
date Fri, 25 Jun 2004 19:14:23 +0000
parents 82816cad0e29
children 5ab35105671a
files h263dec.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h263dec.c	Fri Jun 25 14:11:44 2004 +0000
+++ b/h263dec.c	Fri Jun 25 19:14:23 2004 +0000
@@ -623,7 +623,11 @@
     fprintf(f, "%d %d %f\n", buf_size, s->qscale, buf_size*(double)s->qscale);
 }
 #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,*/
         /* and other parameters. So then we could init the picture   */
         /* FIXME: By the way H263 decoder is evolving it should have */