summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-10-02 19:18:33 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-10-02 19:18:33 +0000
commit2c1db11dd12541bcb5b2284441d918f67430929f (patch)
tree45cd03f0daa96e577d6d870ddb3d5c9823d892d2 /libmpdemux
parent3b2eb5fec135d0ae14efb0a94dde7270a2c4427b (diff)
downloadmpv-2c1db11dd12541bcb5b2284441d918f67430929f.tar.bz2
mpv-2c1db11dd12541bcb5b2284441d918f67430929f.tar.xz
Make sure there is no uninitialized data in BITMAPINFOHEADER created by fli demuxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24687 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_fli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_fli.c b/libmpdemux/demux_fli.c
index 4719fdaccc..f73840b49a 100644
--- a/libmpdemux/demux_fli.c
+++ b/libmpdemux/demux_fli.c
@@ -80,7 +80,7 @@ static demuxer_t* demux_open_fli(demuxer_t* demuxer){
stream_reset(demuxer->stream);
stream_seek(demuxer->stream, 0);
- header = malloc(sizeof(BITMAPINFOHEADER) + 128);
+ header = calloc(1, sizeof(BITMAPINFOHEADER) + 128);
stream_read(demuxer->stream, header + sizeof(BITMAPINFOHEADER), 128);
stream_seek(demuxer->stream, 0);