mirror of
https://github.com/mpv-player/mpv
synced 2025-02-23 10:55:27 +01:00
Make it possible for mpcodecs_get_image to return NULL as the
documentation says it should instead of crashing. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28638 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
bdfef5ff39
commit
4f9a9ae44f
@ -341,7 +341,7 @@ csp_again:
|
||||
// Note: buffer allocation may be moved to mpcodecs_config_vo() later...
|
||||
mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h){
|
||||
mp_image_t* mpi=vf_get_image(sh->vfilter,sh->codec->outfmt[sh->outfmtidx],mp_imgtype,mp_imgflag,w,h);
|
||||
mpi->x=mpi->y=0;
|
||||
if (mpi) mpi->x=mpi->y=0;
|
||||
return mpi;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user