mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 02:09:52 +00:00
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:
parent
053f1d0d62
commit
a2e04f472f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user