aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux
diff options
context:
space:
mode:
authorGravatar henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-02-12 17:01:30 +0000
committerGravatar henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-02-12 17:01:30 +0000
commit81317a1a7917f1811ff27f7304d80b6567756caf (patch)
tree27a923903589df38a93970e8dfc806ee2f485d19 /libmpdemux
parent5fd172c3e1bb61ae94794ded9aaa9e783cd3cff3 (diff)
do not forget to initialize dp->buffer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17612 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demuxer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpdemux/demuxer.h b/libmpdemux/demuxer.h
index 4fe292687c..bf17d79bb6 100644
--- a/libmpdemux/demuxer.h
+++ b/libmpdemux/demuxer.h
@@ -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