[Mplayer-cvslog] CVS: 0_90/libavcodec msmpeg4.c,1.57,1.58

Michael Niedermayer CVS michael at mplayerhq.hu
Mon Feb 10 23:58:04 CET 2003


Update of /cvsroot/mplayer/0_90/libavcodec
In directory mail:/var/tmp.root/cvs-serv761

Modified Files:
	msmpeg4.c 
Log Message:
1/0 bugfix


Index: msmpeg4.c
===================================================================
RCS file: /cvsroot/mplayer/0_90/libavcodec/msmpeg4.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- msmpeg4.c	21 Jan 2003 17:34:11 -0000	1.57
+++ msmpeg4.c	10 Feb 2003 22:58:01 -0000	1.58
@@ -1228,6 +1228,10 @@
 }
 #endif
     s->qscale = get_bits(&s->gb, 5);
+    if(s->qscale==0){
+        fprintf(stderr, "invalid qscale\n");
+        return -1;
+    }
 
     if (s->pict_type == I_TYPE) {
         code = get_bits(&s->gb, 5); 



More information about the MPlayer-cvslog mailing list