mirror of
https://github.com/mpv-player/mpv
synced 2025-03-02 04:11:03 +00:00
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
This commit is contained in:
parent
1bf956391f
commit
f7bdafd55a
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user