[Mplayer-cvslog] CVS: main/libmpcodecs img_format.h,1.9,1.10

Ivan Kalvachev CVS iive at mplayerhq.hu
Sun Jan 26 23:24:52 CET 2003


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

Modified Files:
	img_format.h 
Log Message:
avoid extract of imposible high depths in wrong rgb/bgr functions

Index: img_format.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/img_format.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- img_format.h	15 Jan 2003 11:16:30 -0000	1.9
+++ img_format.h	26 Jan 2003 22:24:48 -0000	1.10
@@ -27,8 +27,8 @@
 #define IMGFMT_IS_RGB(fmt) (((fmt)&IMGFMT_RGB_MASK)==IMGFMT_RGB)
 #define IMGFMT_IS_BGR(fmt) (((fmt)&IMGFMT_BGR_MASK)==IMGFMT_BGR)
 
-#define IMGFMT_RGB_DEPTH(fmt) ((fmt)&~IMGFMT_RGB)
-#define IMGFMT_BGR_DEPTH(fmt) ((fmt)&~IMGFMT_BGR)
+#define IMGFMT_RGB_DEPTH(fmt) ((fmt)&~IMGFMT_RGB_MASK)
+#define IMGFMT_BGR_DEPTH(fmt) ((fmt)&~IMGFMT_BGR_MASK)
 
 
 /* Planar YUV Formats */



More information about the MPlayer-cvslog mailing list