diff options
author | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-26 22:24:48 +0000 |
---|---|---|
committer | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-26 22:24:48 +0000 |
commit | f7bdafd55aeb1eef817fd6bd21b24b69c7ef8dbe (patch) | |
tree | 774d427724e65161aa1a1b9bb0377b7e26184ee6 /libmpcodecs | |
parent | 1bf956391fc4bff66abea121f9088ee9c4b27794 (diff) | |
download | mpv-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
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/img_format.h | 4 |
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 */ |