[MPlayer-dev-eng] ogg/mjpeg with corrupted first frame
Alan Curry
pacman at TheWorld.com
Thu Apr 20 22:19:50 CEST 2006
A while back, I wrote:
>>> http://www6.elphel.com/downloads/elphel333mjpeg/20060320-170056-20060320-170103-217.ogm
>
>This makes it work, but is probably not the cleanest solution
>
>Index: libmpcodecs/vd_ffmpeg.c
>===================================================================
>RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
>retrieving revision 1.159
>diff -u -r1.159 vd_ffmpeg.c
>--- libmpcodecs/vd_ffmpeg.c 8 Feb 2006 23:22:29 -0000 1.159
>+++ libmpcodecs/vd_ffmpeg.c 29 Mar 2006 06:27:40 -0000
>@@ -908,7 +908,7 @@
>
> if(!got_picture) return NULL; // skipped image
>
>- if(init_vo(sh,avctx->pix_fmt) < 0) return NULL;
>+ if(avctx->pix_fmt!=PIX_FMT_NONE && init_vo(sh,avctx->pix_fmt) < 0) return NULL;
>
> if(dr1 && pic->opaque){
> mpi= (mp_image_t*)pic->opaque;
This thread abruptly died. Was that the cleanest solution after all? Or
should libavcodec's mjpeg decoder be fixed somehow?
paging Michael...
More information about the MPlayer-dev-eng
mailing list