]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
use libmpeg2 idct to decode xvid videos unless the user forced some other idct
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 25 Jun 2004 19:14:23 +0000 (19:14 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 25 Jun 2004 19:14:23 +0000 (19:14 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3251 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/h263dec.c

index 4394432e3d4b2189707fd5ff8dff2c45aff7fd88..31580e4dbf41f9f6130fa1ecef4915cf9ee71605 100644 (file)
@@ -623,7 +623,11 @@ retry:
     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 */