mirror of
https://github.com/mpv-player/mpv
synced 2025-02-23 10:55:27 +01:00
Handle mpcodecs_get_image returning NULL, FFmpeg most of the time handles
it correctly (VDPAU and probably H.264 currently don't, MPEG1/2 does etc.). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28643 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f55bc9413c
commit
0248741426
@ -576,6 +576,7 @@ static int get_buffer(AVCodecContext *avctx, AVFrame *pic){
|
||||
|
||||
mpi= mpcodecs_get_image(sh, type, flags,
|
||||
(width+align)&(~align), (height+align)&(~align));
|
||||
if (!mpi) return -1;
|
||||
|
||||
// ok, let's see what did we get:
|
||||
if(mpi->flags&MP_IMGFLAG_DRAW_CALLBACK &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user