summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2011-01-02 11:16:21 +0000
committerVitor Sessak <vitor1001@gmail.com>2011-01-02 11:16:21 +0000
commite3e3c82555e2382125195c1ba9f34b5a43299abc (patch)
treeff6363f59c4d845ddaa3623843a56dcbf3ff0b36 /libavcodec
parentcf99e4aa00c4a74f3da5dd399c69da84fd176d4a (diff)
downloadffmpeg-e3e3c82555e2382125195c1ba9f34b5a43299abc.tar.gz
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
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c
index 606a749695..83e1f7ce9c 100644
--- a/libavcodec/mdec.c
+++ b/libavcodec/mdec.c
@@ -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;
}