# HG changeset patch # User reimar # Date 1258760466 0 # Node ID f1bf918917c6a421126bbfd0af4ba7eb981bb1f6 # Parent ac3e6e27f2c74cf5109288746714f192473970e5 calloc instead of malloc+memset. diff -r ac3e6e27f2c7 -r f1bf918917c6 libmpdemux/demux_rawdv.c --- a/libmpdemux/demux_rawdv.c Fri Nov 20 23:36:16 2009 +0000 +++ b/libmpdemux/demux_rawdv.c Fri Nov 20 23:41:06 2009 +0000 @@ -190,8 +190,7 @@ 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;