summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorrik <rik@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-01 18:49:40 +0000
committerrik <rik@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-01 18:49:40 +0000
commit3d5fedd66a0cc258c5e6423abbf73cd1da015617 (patch)
treeca87084b4f43f7b4369c7c10c099f28c8d40f79d /libvo
parent3b4e87616d9ad650258c74eee7fa8a07c924d2f4 (diff)
downloadmpv-3d5fedd66a0cc258c5e6423abbf73cd1da015617.tar.bz2
mpv-3d5fedd66a0cc258c5e6423abbf73cd1da015617.tar.xz
Patch from Karolina Lindqvist <karolina.lindqvist@kramnet.se>
"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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/jpeg_enc.c2
1 files changed, 2 insertions, 0 deletions
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;