[Mplayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.106,1.107

Attila Kinali CVS attila at mplayerhq.hu
Mon Nov 3 11:43:07 CET 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv19941

Modified Files:
	vd_ffmpeg.c 
Log Message:
If alex is too lazy to apply a patch, then i'll do it :)

This one fixes a sig11 when the -vo can't be initialized and get_buffer fails
for libavcodec


Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -r1.106 -r1.107
--- vd_ffmpeg.c	20 Oct 2003 21:21:42 -0000	1.106
+++ vd_ffmpeg.c	3 Nov 2003 10:42:28 -0000	1.107
@@ -727,6 +727,9 @@
         mpi->stride[1]=pic->linesize[1];
         mpi->stride[2]=pic->linesize[2];
     }
+    
+    if (!mpi->planes[0])
+	return NULL;
 
     if(avctx->pix_fmt==PIX_FMT_YUV422P && mpi->chroma_y_shift==1){
 	// we have 422p but user wants 420p



More information about the MPlayer-cvslog mailing list