Mercurial > mplayer.hg
changeset 4556:90a535d87e7b
emulating BITMAPINFOHDR (for win32 codecs)
author | arpi |
---|---|
date | Wed, 06 Feb 2002 22:03:19 +0000 |
parents | 44fed00fce13 |
children | 1fac3562fda5 |
files | libmpdemux/demux_mf.c |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mf.c Wed Feb 06 21:59:23 2002 +0000 +++ b/libmpdemux/demux_mf.c Wed Feb 06 22:03:19 2002 +0000 @@ -38,7 +38,7 @@ mf=(mf_t*)demuxer->stream->priv; stat( mf->names[dmf->curr_frame],&fs ); -// printf( "[demux_mf] frame: %d (%s,%d)\n",dmf->curr_frame,mf->names[dmf->curr_frame],fs.st_size ); + printf( "[demux_mf] frame: %d (%s,%d)\n",dmf->curr_frame,mf->names[dmf->curr_frame],fs.st_size ); if ( !( f=fopen( mf->names[dmf->curr_frame],"r" ) ) ) return 0; { @@ -94,6 +94,17 @@ sh_video->fps = mf_fps; sh_video->frametime = 1 / sh_video->fps; + // emulate BITMAPINFOHEADER: + sh_video->bih=malloc(sizeof(BITMAPINFOHEADER)); + memset(sh_video->bih,0,sizeof(BITMAPINFOHEADER)); + sh_video->bih->biSize=40; + sh_video->bih->biWidth = mf_w; + sh_video->bih->biHeight = mf_h; + sh_video->bih->biPlanes=1; + sh_video->bih->biBitCount=24; + sh_video->bih->biCompression=sh_video->format; + sh_video->bih->biSizeImage=sh_video->bih->biWidth*sh_video->bih->biHeight*3; + /* disable seeking */ demuxer->seekable = 0;