new_demux_packet: allocate 8 bytes too much

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6884 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-08-04 00:15:58 +00:00
parent 053f1d0d62
commit a2e04f472f
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ typedef struct demuxer_st {
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;