changeset 6883:f18549636aee

new_demux_packet: allocate 8 bytes too much
author arpi
date Sun, 04 Aug 2002 00:15:58 +0000
parents f3f87f6bf5cf
children 37946a0a155a
files libmpdemux/demuxer.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.h	Sun Aug 04 00:07:55 2002 +0000
+++ b/libmpdemux/demuxer.h	Sun Aug 04 00:15:58 2002 +0000
@@ -125,7 +125,7 @@
 inline static demux_packet_t* new_demux_packet(int len){
   demux_packet_t* dp=malloc(sizeof(demux_packet_t));
   dp->len=len;
-  dp->buffer=len?malloc(len):NULL;
+  dp->buffer=len?malloc(len+8):NULL;
   dp->next=NULL;
   dp->pts=0;
   dp->pos=0;