[MPlayer-dev-eng] Fixed MS Video-1, 8-bit variant

Mike Melanson melanson at pcisys.net
Fri Nov 23 04:30:48 CET 2001


Hi team,
	I fixed the 8-bit variant of MS Video-1. It was something
stupid, wouldn't ya know...the patch is enclosed. It happened when I
copied and pasted the 16-bit decoder-- didn't initialize a variable called
flags.

	Note that the algorithm document I wrote remains unchanged.

RCS file: /cvsroot/mplayer/main/msvidc.c,v
retrieving revision 1.2
diff -u -r1.2 msvidc.c
--- msvidc.c    17 Nov 2001 19:55:25 -0000      1.2
+++ msvidc.c    23 Nov 2001 03:31:59 -0000
@@ -293,7 +293,8 @@
       // check if it's an 8-color block
       else if (byte_b >= 0x90)
       {
-        // 8-color encoding
+        flags = (byte_b << 8) | byte_a;
+
         quad[0][0].c1 = (unsigned char)encoded[stream_ptr++];
         quad[0][0].c2 = (unsigned char)encoded[stream_ptr++];
         quad[1][0].c1 = (unsigned char)encoded[stream_ptr++];

-- 
	-Mike Melanson




More information about the MPlayer-dev-eng mailing list