From 3d5fedd66a0cc258c5e6423abbf73cd1da015617 Mon Sep 17 00:00:00 2001 From: rik Date: Fri, 1 Sep 2006 18:49:40 +0000 Subject: Patch from Karolina Lindqvist "There is a bug in the zoran -vo zr driver, that makes the output garbled always. It also probably affects the zrmjpeg filter. This patch takes care of the problem." Patch tested and OK. And 10l to me, because this bug probably has existed for a looong time. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19625 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/jpeg_enc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libvo') diff --git a/libvo/jpeg_enc.c b/libvo/jpeg_enc.c index 060e097fd1..bdb9748656 100644 --- a/libvo/jpeg_enc.c +++ b/libvo/jpeg_enc.c @@ -351,6 +351,8 @@ jpeg_enc_t *jpeg_enc_init(int w, int h, int y_psize, int y_rsize, /* alloc bogus avctx to keep MPV_common_init from segfaulting */ j->s->avctx = calloc(sizeof(*j->s->avctx), 1); + /* Set up to encode mjpeg */ + j->s->avctx->codec_id = CODEC_ID_MJPEG; /* make MPV_common_init allocate important buffers, like s->block */ j->s->avctx->thread_count = 1; -- cgit v1.2.3