Browse Source

Make PSX MDEC decoder output YUVJ420 and always use IDCT_SIMPLE. This

makes the output much closer to original Playstation hardware.

Originally committed as revision 26196 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Vitor Sessak 14 years ago
parent
commit
e3e3c82555
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/mdec.c

+ 3
- 1
libavcodec/mdec.c View File

@@ -229,9 +229,11 @@ static av_cold int decode_init(AVCodecContext *avctx){
ff_mpeg12_init_vlcs();
ff_init_scantable(a->dsp.idct_permutation, &a->scantable, ff_zigzag_direct);

if( avctx->idct_algo == FF_IDCT_AUTO )
avctx->idct_algo = FF_IDCT_SIMPLE;
p->qstride= 0;
p->qscale_table= av_mallocz(a->mb_width);
avctx->pix_fmt= PIX_FMT_YUV420P;
avctx->pix_fmt= PIX_FMT_YUVJ420P;

return 0;
}


Loading…
Cancel
Save