[MPlayer-cvslog] CVS: main/libmpdemux muxer_mpeg.c,1.42,1.43

Nico Sabbi CVS syncmail at mplayerhq.hu
Wed Apr 5 22:51:38 CEST 2006


CVS change done by Nico Sabbi CVS

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

Modified Files:
	muxer_mpeg.c 
Log Message:
workaround to prevent segfault: when using -ve lavc with b-frames write_chunk(1st video frame) gets called with len=-1UL; -1ULl to whomever calls me that way

Index: muxer_mpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/muxer_mpeg.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- muxer_mpeg.c	11 Mar 2006 23:38:54 -0000	1.42
+++ muxer_mpeg.c	5 Apr 2006 20:51:35 -0000	1.43
@@ -2436,6 +2436,8 @@
  
   if(s->buffer == NULL)
   	return;
+  if(len == -1)
+	return;
   
   pts = 0;
   if (s->type == MUXER_TYPE_VIDEO) { // try to recognize frame type...




More information about the MPlayer-cvslog mailing list