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:
reimar 2009-02-17 19:01:29 +00:00
parent bdfef5ff39
commit 4f9a9ae44f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}