[FFmpeg-cvslog] r26196 - trunk/libavcodec/mdec.c
vitor
subversion
Sun Jan 2 12:16:21 CET 2011
Author: vitor
Date: Sun Jan 2 12:16:21 2011
New Revision: 26196
Log:
Make PSX MDEC decoder output YUVJ420 and always use IDCT_SIMPLE. This
makes the output much closer to original Playstation hardware.
Modified:
trunk/libavcodec/mdec.c
Modified: trunk/libavcodec/mdec.c
==============================================================================
--- trunk/libavcodec/mdec.c Sun Jan 2 11:52:34 2011 (r26195)
+++ trunk/libavcodec/mdec.c Sun Jan 2 12:16:21 2011 (r26196)
@@ -229,9 +229,11 @@ static av_cold int decode_init(AVCodecCo
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;
}
More information about the ffmpeg-cvslog
mailing list