Browse Source

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

Originally committed as revision 3251 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 21 years ago
parent
commit
ee0c00d3b4
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      libavcodec/h263dec.c

+ 5
- 1
libavcodec/h263dec.c View 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 */


Loading…
Cancel
Save