mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
33abd0ca16
commit
f10ca60dbd
|
@ -728,6 +728,9 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
|
|||
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
|
||||
mpi->stride[1]*=2;
|
||||
|
|
Loading…
Reference in New Issue