comparison libmpdemux/demux_rawdv.c @ 32123:a86413775fbe

Replace sizeof(BITMAPINFOHEADER)
author reimar
date Sun, 12 Sep 2010 16:08:57 +0000
parents d332ea379205
children a7784f6008a7
comparison
equal deleted inserted replaced
32122:0f9662ec84d0 32123:a86413775fbe
188 188
189 sh_video->fps= (dv_decoder->system==e_dv_system_525_60?29.97:25); 189 sh_video->fps= (dv_decoder->system==e_dv_system_525_60?29.97:25);
190 sh_video->frametime = 1.0/sh_video->fps; 190 sh_video->frametime = 1.0/sh_video->fps;
191 191
192 // emulate BITMAPINFOHEADER for win32 decoders: 192 // emulate BITMAPINFOHEADER for win32 decoders:
193 sh_video->bih=calloc(1, sizeof(BITMAPINFOHEADER)); 193 sh_video->bih=calloc(1, sizeof(*sh_video->bih));
194 sh_video->bih->biSize=40; 194 sh_video->bih->biSize=40;
195 sh_video->bih->biWidth = dv_decoder->width; 195 sh_video->bih->biWidth = dv_decoder->width;
196 sh_video->bih->biHeight = dv_decoder->height; 196 sh_video->bih->biHeight = dv_decoder->height;
197 sh_video->bih->biPlanes=1; 197 sh_video->bih->biPlanes=1;
198 sh_video->bih->biBitCount=24; 198 sh_video->bih->biBitCount=24;