Mercurial > mplayer.hg
diff libmpcodecs/vd_svq1.c @ 6521:adc50c83986d
do not crash by decoding error
author | alex |
---|---|
date | Sun, 23 Jun 2002 11:34:54 +0000 |
parents | a2086150099b |
children | 1e47c2e7aa8e |
line wrap: on
line diff
--- a/libmpcodecs/vd_svq1.c Sun Jun 23 11:01:25 2002 +0000 +++ b/libmpcodecs/vd_svq1.c Sun Jun 23 11:34:54 2002 +0000 @@ -60,6 +60,8 @@ 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);