diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-06 22:03:19 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-06 22:03:19 +0000 |
commit | 8c6da39840ec8403d6d5bc6ec6c165f8e288e081 (patch) | |
tree | 1e3cf14a11cda32f2607c29cc3eb3308353e7160 /libmpdemux | |
parent | e4b59148597a003f1d5fd45eebb74554a191deba (diff) | |
download | mpv-8c6da39840ec8403d6d5bc6ec6c165f8e288e081.tar.bz2 mpv-8c6da39840ec8403d6d5bc6ec6c165f8e288e081.tar.xz |
emulating BITMAPINFOHDR (for win32 codecs)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4557 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mf.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libmpdemux/demux_mf.c b/libmpdemux/demux_mf.c index ab9b787964..ceb173d4f6 100644 --- a/libmpdemux/demux_mf.c +++ b/libmpdemux/demux_mf.c @@ -38,7 +38,7 @@ int demux_mf_fill_buffer(demuxer_t *demuxer){ 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 @@ demuxer_t* demux_open_mf(demuxer_t* demuxer){ 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; |