[MPlayer-cvslog] r29286 - trunk/libmpcodecs/vf_zrmjpeg.c
rik
subversion at mplayerhq.hu
Sat May 9 23:37:10 CEST 2009
Author: rik
Date: Sat May 9 23:37:07 2009
New Revision: 29286
Log:
MPV_common_init balks if s->avctx->pix_fmt == PIX_FMT_NONE, so we set it correctly
Modified:
trunk/libmpcodecs/vf_zrmjpeg.c
Modified: trunk/libmpcodecs/vf_zrmjpeg.c
==============================================================================
--- trunk/libmpcodecs/vf_zrmjpeg.c Sat May 9 20:47:18 2009 (r29285)
+++ trunk/libmpcodecs/vf_zrmjpeg.c Sat May 9 23:37:07 2009 (r29286)
@@ -505,6 +505,8 @@ static jpeg_enc_t *jpeg_enc_init(int w,
// Which DCT method to use. AUTO will select the fastest one
j->s->avctx->dct_algo = FF_DCT_AUTO;
j->s->intra_quant_bias= 1<<(QUANT_BIAS_SHIFT-1); //(a + x/2)/x
+ // indicate we 'decode' to jpeg 4:2:2
+ j->s->avctx->pix_fmt = PIX_FMT_YUVJ422P;
j->s->avctx->thread_count = 1;
More information about the MPlayer-cvslog
mailing list