fix bih->biSize for uncompressed files too

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7785 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-10-17 21:54:51 +00:00
parent e635c0d02d
commit 062f1005aa
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ while(1){
stream_read(demuxer->stream,(char*) sh_video->bih,chunksize);
le2me_BITMAPINFOHEADER(sh_video->bih); // swap to machine endian
// fixup MS-RLE header (seems to be broken for <256 color files)
if(sh_video->bih->biCompression==1 && sh_video->bih->biSize==40)
if(sh_video->bih->biCompression<=1 && sh_video->bih->biSize==40)
sh_video->bih->biSize=chunksize;
if(verbose>=1) print_video_header(sh_video->bih);
chunksize=0;