summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-20 23:41:06 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-20 23:41:06 +0000
commit66c41d41c55a144c4cacd0e8f5b586e4a4f53ef1 (patch)
tree1c559c5b662733f5ef2da773d8826f07c71e7427 /libmpdemux
parentbd5ec5065ebb8f2ff3f1ab3d7bc14097afc93e2d (diff)
downloadmpv-66c41d41c55a144c4cacd0e8f5b586e4a4f53ef1.tar.bz2
mpv-66c41d41c55a144c4cacd0e8f5b586e4a4f53ef1.tar.xz
calloc instead of malloc+memset.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29939 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_rawdv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libmpdemux/demux_rawdv.c b/libmpdemux/demux_rawdv.c
index 69a99deca1..73068417c2 100644
--- a/libmpdemux/demux_rawdv.c
+++ b/libmpdemux/demux_rawdv.c
@@ -190,8 +190,7 @@ static demuxer_t* demux_open_rawdv(demuxer_t* demuxer)
sh_video->frametime = 1.0/sh_video->fps;
// emulate BITMAPINFOHEADER for win32 decoders:
- sh_video->bih=malloc(sizeof(BITMAPINFOHEADER));
- memset(sh_video->bih,0,sizeof(BITMAPINFOHEADER));
+ sh_video->bih=calloc(1, sizeof(BITMAPINFOHEADER));
sh_video->bih->biSize=40;
sh_video->bih->biWidth = dv_decoder->width;
sh_video->bih->biHeight = dv_decoder->height;