changeset 11372:3761aff4722e

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
author attila
date Mon, 03 Nov 2003 10:42:28 +0000
parents 9cd1546f26ea
children 3b9f8ee18ff9
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Mon Nov 03 10:30:20 2003 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Mon Nov 03 10:42:28 2003 +0000
@@ -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