Mercurial > mplayer.hg
comparison libmpdemux/demux_mf.c @ 32105:c08363dc5320
Replace sizoef(type) by sizeof(*ptrvar).
Besides being consistent with FFmpeg style,
this reduces the size of a patch to rename these
types to not conflict with the windows.h definitions.
author | reimar |
---|---|
date | Sun, 12 Sep 2010 13:01:05 +0000 |
parents | 258df656f1ff |
children | 8fa2f43cb760 |
comparison
equal
deleted
inserted
replaced
32104:e24003316c1c | 32105:c08363dc5320 |
---|---|
158 sh_video->disp_h = mf_h; | 158 sh_video->disp_h = mf_h; |
159 sh_video->fps = mf_fps; | 159 sh_video->fps = mf_fps; |
160 sh_video->frametime = 1 / sh_video->fps; | 160 sh_video->frametime = 1 / sh_video->fps; |
161 | 161 |
162 // emulate BITMAPINFOHEADER: | 162 // emulate BITMAPINFOHEADER: |
163 sh_video->bih=calloc(1, sizeof(BITMAPINFOHEADER)); | 163 sh_video->bih=calloc(1, sizeof(*sh_video->bih)); |
164 sh_video->bih->biSize=40; | 164 sh_video->bih->biSize=40; |
165 sh_video->bih->biWidth = mf_w; | 165 sh_video->bih->biWidth = mf_w; |
166 sh_video->bih->biHeight = mf_h; | 166 sh_video->bih->biHeight = mf_h; |
167 sh_video->bih->biPlanes=1; | 167 sh_video->bih->biPlanes=1; |
168 sh_video->bih->biBitCount=24; | 168 sh_video->bih->biBitCount=24; |