[Mplayer-cvslog] CVS: main/libmpcodecs vd_svq1.c,1.3,1.4

Alex Beregszaszi alex at mplayerhq.hu
Sun Jun 23 13:34:57 CEST 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv16306

Modified Files:
	vd_svq1.c 
Log Message:
do not crash by decoding error

Index: vd_svq1.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_svq1.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vd_svq1.c	23 Jun 2002 00:50:27 -0000	1.3
+++ vd_svq1.c	23 Jun 2002 11:34:54 -0000	1.4
@@ -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);




More information about the MPlayer-cvslog mailing list