summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-26 22:24:48 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-26 22:24:48 +0000
commitf7bdafd55aeb1eef817fd6bd21b24b69c7ef8dbe (patch)
tree774d427724e65161aa1a1b9bb0377b7e26184ee6
parent1bf956391fc4bff66abea121f9088ee9c4b27794 (diff)
downloadmpv-f7bdafd55aeb1eef817fd6bd21b24b69c7ef8dbe.tar.bz2
mpv-f7bdafd55aeb1eef817fd6bd21b24b69c7ef8dbe.tar.xz
avoid extract of imposible high depths in wrong rgb/bgr functions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9117 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpcodecs/img_format.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpcodecs/img_format.h b/libmpcodecs/img_format.h
index e1876c20c7..4a19febc27 100644
--- a/libmpcodecs/img_format.h
+++ b/libmpcodecs/img_format.h
@@ -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 */