From f10ca60dbd0f6b368ad2fb4e1278de0c324b742e Mon Sep 17 00:00:00 2001 From: attila Date: Mon, 3 Nov 2003 10:42:28 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11373 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_ffmpeg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 6f97991d28..fe21232947 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -727,6 +727,9 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ 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