diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-17 21:54:51 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-17 21:54:51 +0000 |
commit | 062f1005aa53a2340875a937e6704b6db3a906ab (patch) | |
tree | fd930790511e3f1f617fbd1e9a41a3c26492f9ef | |
parent | e635c0d02d8d588baadaf9bca059713206b51a81 (diff) | |
download | mpv-062f1005aa53a2340875a937e6704b6db3a906ab.tar.bz2 mpv-062f1005aa53a2340875a937e6704b6db3a906ab.tar.xz |
fix bih->biSize for uncompressed files too
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7785 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/aviheader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/aviheader.c b/libmpdemux/aviheader.c index b88f314d23..095fbdc86a 100644 --- a/libmpdemux/aviheader.c +++ b/libmpdemux/aviheader.c @@ -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; |