Mercurial > mplayer.hg
comparison aviheader.c @ 1492:2c004737cb68
print BITMAPINFOHDR too
author | arpi |
---|---|
date | Sun, 12 Aug 2001 02:00:14 +0000 |
parents | b895f95e7657 |
children | 8c3e93ef116d |
comparison
equal
deleted
inserted
replaced
1491:41e82ba06d1b | 1492:2c004737cb68 |
---|---|
94 sh_video->bih=calloc((chunksize<sizeof(BITMAPINFOHEADER))?sizeof(BITMAPINFOHEADER):chunksize,1); | 94 sh_video->bih=calloc((chunksize<sizeof(BITMAPINFOHEADER))?sizeof(BITMAPINFOHEADER):chunksize,1); |
95 // sh_video->bih=malloc(chunksize); memset(sh_video->bih,0,chunksize); | 95 // sh_video->bih=malloc(chunksize); memset(sh_video->bih,0,chunksize); |
96 if(verbose>=1) printf("found 'bih', %d bytes of %d\n",chunksize,sizeof(BITMAPINFOHEADER)); | 96 if(verbose>=1) printf("found 'bih', %d bytes of %d\n",chunksize,sizeof(BITMAPINFOHEADER)); |
97 stream_read(demuxer->stream,(char*) sh_video->bih,chunksize); | 97 stream_read(demuxer->stream,(char*) sh_video->bih,chunksize); |
98 le2me_BITMAPINFOHEADER(sh_video->bih); // swap to machine endian | 98 le2me_BITMAPINFOHEADER(sh_video->bih); // swap to machine endian |
99 if(verbose>=1) print_video_header(sh_video->bih); | |
99 chunksize=0; | 100 chunksize=0; |
100 // sh_video->fps=(float)sh_video->video.dwRate/(float)sh_video->video.dwScale; | 101 // sh_video->fps=(float)sh_video->video.dwRate/(float)sh_video->video.dwScale; |
101 // sh_video->frametime=(float)sh_video->video.dwScale/(float)sh_video->video.dwRate; | 102 // sh_video->frametime=(float)sh_video->video.dwScale/(float)sh_video->video.dwRate; |
102 // if(demuxer->video->id==-1) demuxer->video->id=stream_id; | 103 // if(demuxer->video->id==-1) demuxer->video->id=stream_id; |
103 // IdxFix: | 104 // IdxFix: |