diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-23 11:34:54 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-23 11:34:54 +0000 |
commit | f43150759d2133c51607d02972358574f21e4ddb (patch) | |
tree | db406db6518550531e7bcffb491311d516185e5f | |
parent | 83174484415686aba75af6f65cfcdb498454f52b (diff) | |
download | mpv-f43150759d2133c51607d02972358574f21e4ddb.tar.bz2 mpv-f43150759d2133c51607d02972358574f21e4ddb.tar.xz |
do not crash by decoding error
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6522 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/vd_svq1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/vd_svq1.c b/libmpcodecs/vd_svq1.c index 0711d044bf..a639399001 100644 --- a/libmpcodecs/vd_svq1.c +++ b/libmpcodecs/vd_svq1.c @@ -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); |