changeset 29244:70803f88fba8

MPV_common_init balks if s->avctx->pix_fmt == PIX_FMT_NONE, so we set it correctly
author rik
date Sat, 09 May 2009 21:37:07 +0000
parents 0e5b1e4f2ad5
children 294522d3c22e
files libmpcodecs/vf_zrmjpeg.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_zrmjpeg.c	Sat May 09 18:47:18 2009 +0000
+++ b/libmpcodecs/vf_zrmjpeg.c	Sat May 09 21:37:07 2009 +0000
@@ -505,6 +505,8 @@
 	// 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;