# HG changeset patch # User arpi # Date 1034891691 0 # Node ID cb552fdb7b8aaf9317d9bd7d321423968780fc65 # Parent 29c05977451946648a0dca405a338c23c5599f2c fix bih->biSize for uncompressed files too diff -r 29c059774519 -r cb552fdb7b8a libmpdemux/aviheader.c --- a/libmpdemux/aviheader.c Thu Oct 17 21:53:30 2002 +0000 +++ b/libmpdemux/aviheader.c Thu Oct 17 21:54:51 2002 +0000 @@ -183,7 +183,7 @@ 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;