mirror of
https://github.com/mpv-player/mpv
synced 2025-01-19 22:01:10 +00:00
do not forget to initialize dp->buffer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17612 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5fd172c3e1
commit
81317a1a79
@ -190,6 +190,7 @@ inline static demux_packet_t* new_demux_packet(int len){
|
||||
dp->flags=0;
|
||||
dp->refcount=1;
|
||||
dp->master=NULL;
|
||||
dp->buffer=NULL;
|
||||
if (len > 0 && (dp->buffer = (unsigned char *)malloc(len + 8)))
|
||||
memset(dp->buffer + len, 0, 8);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user