aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux
diff options
context:
space:
mode:
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