mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 05:15:12 +00:00
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:
parent
e635c0d02d
commit
062f1005aa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user