mirror of
https://github.com/mpv-player/mpv
synced 2024-12-14 19:05:33 +00:00
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
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user