changeset 7784:cb552fdb7b8a

fix bih->biSize for uncompressed files too
author arpi
date Thu, 17 Oct 2002 21:54:51 +0000
parents 29c059774519
children ffe8bfaa2851
files libmpdemux/aviheader.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;