Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 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 | c9a3a1e70263 |
children | 8770be0a5bb5 |
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