[Mplayer-cvslog] CVS: main/libmpdemux aviheader.c,1.48,1.49

Arpi of Ize arpi at mplayerhq.hu
Thu Oct 17 23:54:54 CEST 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv23377

Modified Files:
	aviheader.c 
Log Message:
fix bih->biSize for uncompressed files too


Index: aviheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/aviheader.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- aviheader.c	16 Oct 2002 21:04:19 -0000	1.48
+++ aviheader.c	17 Oct 2002 21:54:51 -0000	1.49
@@ -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;




More information about the MPlayer-cvslog mailing list