[MPlayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.132,1.133

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Oct 5 16:55:10 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv18097

Modified Files:
	demux_mov.c 
Log Message:
10l, off by one error in last patch (codecdata length sanity check),
caused crashes with qdmc audio.


Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -r1.132 -r1.133
--- demux_mov.c	28 Sep 2005 15:37:30 -0000	1.132
+++ demux_mov.c	5 Oct 2005 14:55:06 -0000	1.133
@@ -712,7 +712,7 @@
 			    sh->codecdata = (unsigned char *)malloc(sh->codecdata_len);
 			    memcpy(sh->codecdata, &trak->stdata[52+char2int(trak->stdata,52)], sh->codecdata_len);
 		    } else {
-		      if (len > 8 && len + 44 < trak->stdata_len) {
+		      if (len > 8 && len + 44 <= trak->stdata_len) {
 		    sh->codecdata_len = len-8;
 		    sh->codecdata = trak->stdata+44+8;
 		      }




More information about the MPlayer-cvslog mailing list