[Mplayer-cvslog] CVS: main/libmpdemux mpeg_hdr.c,1.3,1.4

Ivan Kalvachev CVS syncmail at mplayerhq.hu
Fri Jun 11 10:06:03 CEST 2004


CVS change done by Ivan Kalvachev CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv27423

Modified Files:
	mpeg_hdr.c 
Log Message:
mpeg2 chroma422/444 support

Index: mpeg_hdr.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/mpeg_hdr.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- mpeg_hdr.c	31 Mar 2002 23:46:00 -0000	1.3
+++ mpeg_hdr.c	11 Jun 2004 08:06:01 -0000	1.4
@@ -58,8 +58,10 @@
 					      unsigned char * buffer)
 {
     /* check chroma format, size extensions, marker bit */
-    if (((buffer[1] & 0x07) != 0x02) || (buffer[2] & 0xe0) ||
-	((buffer[3] & 0x01) != 0x01))
+	    
+    if ( ((buffer[1] & 0x06) == 0x00) ||
+         ((buffer[1] & 0x01) != 0x00) || (buffer[2] & 0xe0) ||
+         ((buffer[3] & 0x01) != 0x01) )
 	return 1;
 
     picture->progressive_sequence = (buffer[1] >> 3) & 1;




More information about the MPlayer-cvslog mailing list