1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00

do not crash by decoding error

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6522 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-06-23 11:34:54 +00:00
parent 8317448441
commit f43150759d

View File

@ -60,6 +60,8 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
if(len<=0) return NULL; // skipped frame
ret=svq1_decode_frame(svq1,data,len);
if (ret != 0)
return NULL;
mpi=mpcodecs_get_image(sh, MP_IMGTYPE_EXPORT, MP_IMGFLAG_PRESERVE,
sh->disp_w, sh->disp_h);