[MPlayer-cvslog] r24687 - trunk/libmpdemux/demux_fli.c
reimar
subversion at mplayerhq.hu
Tue Oct 2 21:18:33 CEST 2007
Author: reimar
Date: Tue Oct 2 21:18:33 2007
New Revision: 24687
Log:
Make sure there is no uninitialized data in BITMAPINFOHEADER created by fli demuxer
Modified:
trunk/libmpdemux/demux_fli.c
Modified: trunk/libmpdemux/demux_fli.c
==============================================================================
--- trunk/libmpdemux/demux_fli.c (original)
+++ trunk/libmpdemux/demux_fli.c Tue Oct 2 21:18:33 2007
@@ -80,7 +80,7 @@ static demuxer_t* demux_open_fli(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);
More information about the MPlayer-cvslog
mailing list