1
mirror of https://github.com/mpv-player/mpv synced 2024-07-27 17:48:22 +02:00

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
This commit is contained in:
rik 2006-09-01 18:49:40 +00:00
parent 3b4e87616d
commit 3d5fedd66a
2 changed files with 4 additions and 0 deletions

View File

@ -359,6 +359,8 @@ static 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;

View File

@ -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;