comparison libvo/jpeg_enc.c @ 19619:a83e5b8d2e63

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.
author rik
date Fri, 01 Sep 2006 18:49:40 +0000
parents b01679500a5e
children 019171a44e19
comparison
equal deleted inserted replaced
19618:e9576ce3d426 19619:a83e5b8d2e63
349 return NULL; 349 return NULL;
350 } 350 }
351 351
352 /* alloc bogus avctx to keep MPV_common_init from segfaulting */ 352 /* alloc bogus avctx to keep MPV_common_init from segfaulting */
353 j->s->avctx = calloc(sizeof(*j->s->avctx), 1); 353 j->s->avctx = calloc(sizeof(*j->s->avctx), 1);
354 /* Set up to encode mjpeg */
355 j->s->avctx->codec_id = CODEC_ID_MJPEG;
354 356
355 /* make MPV_common_init allocate important buffers, like s->block */ 357 /* make MPV_common_init allocate important buffers, like s->block */
356 j->s->avctx->thread_count = 1; 358 j->s->avctx->thread_count = 1;
357 359
358 if (MPV_common_init(j->s) < 0) { 360 if (MPV_common_init(j->s) < 0) {