diff options
author | 2002-06-23 11:34:54 +0000 | |
---|---|---|
committer | 2002-06-23 11:34:54 +0000 | |
commit | f43150759d2133c51607d02972358574f21e4ddb (patch) | |
tree | db406db6518550531e7bcffb491311d516185e5f /libmpcodecs/vd_svq1.c | |
parent | 83174484415686aba75af6f65cfcdb498454f52b (diff) |
do not crash by decoding error
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6522 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_svq1.c')
-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); |