[MPlayer-users] Re: can't get zoran output to work

Karolina Lindqvist karolina.lindqvist at kramnet.se
Sun Aug 27 00:37:56 CEST 2006


lördag 26 augusti 2006 01:25 skrev Phil Bertram:

> Unfortunately using mjpeg.c from pre7 with svn (today) results in a build
> error for me.

It requires some other patches to compile. But today I have found a patch 
that hopefully will fix the problem. It is not much tested; I will do more 
testing tomorrow, but if you feel experimental you can try it.

Karolina



*** /u/src/mplayer/libvo/jpeg_enc.c     2006-08-26 20:25:17.000000000 +0200
--- jpeg_enc.c  2006-08-26 23:55:37.000000000 +0200
***************
*** 351,356 ****
--- 351,358 ----

        /* alloc bogus avctx to keep MPV_common_init from segfaulting */
        j->s->avctx = calloc(sizeof(*j->s->avctx), 1);
+       /* Set up jpeg type */
+       j->s->avctx->codec_id = CODEC_ID_MJPEG;

        /* make MPV_common_init allocate important buffers, like s->block */
        j->s->avctx->thread_count = 1;






More information about the MPlayer-users mailing list