[Mplayer-cvslog] CVS: main/libmpdemux demuxer.h,1.48,1.49

Arpi of Ize arpi at mplayerhq.hu
Thu Oct 17 02:54:16 CEST 2002


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

Modified Files:
	demuxer.h 
Log Message:
fill the extra bytes with zero


Index: demuxer.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demuxer.h,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- demuxer.h	16 Oct 2002 14:50:45 -0000	1.48
+++ demuxer.h	17 Oct 2002 00:54:13 -0000	1.49
@@ -130,13 +130,14 @@
 inline static demux_packet_t* new_demux_packet(int len){
   demux_packet_t* dp=(demux_packet_t*)malloc(sizeof(demux_packet_t));
   dp->len=len;
-  dp->buffer=len?(unsigned char*)malloc(len+8):NULL;
   dp->next=NULL;
   dp->pts=0;
   dp->pos=0;
   dp->flags=0;
   dp->refcount=1;
   dp->master=NULL;
+  dp->buffer=len?(unsigned char*)malloc(len+8):NULL;
+  if(len) memset(dp->buffer+len,0,8);
   return dp;
 }
 




More information about the MPlayer-cvslog mailing list