mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 20:03:10 +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:
parent
3b4e87616d
commit
3d5fedd66a
@ -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 */
|
/* alloc bogus avctx to keep MPV_common_init from segfaulting */
|
||||||
j->s->avctx = calloc(sizeof(*j->s->avctx), 1);
|
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 */
|
/* make MPV_common_init allocate important buffers, like s->block */
|
||||||
j->s->avctx->thread_count = 1;
|
j->s->avctx->thread_count = 1;
|
||||||
|
@ -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 */
|
/* alloc bogus avctx to keep MPV_common_init from segfaulting */
|
||||||
j->s->avctx = calloc(sizeof(*j->s->avctx), 1);
|
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 */
|
/* make MPV_common_init allocate important buffers, like s->block */
|
||||||
j->s->avctx->thread_count = 1;
|
j->s->avctx->thread_count = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user