summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authormplayer-svn <svn@mplayerhq.hu>2012-02-07 22:07:09 +0000
committerwm4 <wm4@nowhere>2012-08-03 01:46:25 +0200
commitcb2f0e7c38020a9d0777f0d4ccbb0a9f05e622fc (patch)
tree345055de5ceeb7a54a2144f24fdd90ce652348d6 /libvo
parent47a0e4fadd2b47d783aaeed4561b0627d0df8251 (diff)
downloadmpv-cb2f0e7c38020a9d0777f0d4ccbb0a9f05e622fc.tar.bz2
mpv-cb2f0e7c38020a9d0777f0d4ccbb0a9f05e622fc.tar.xz
libmpcodecs: use 128 instead of 64 to define non-native RGB image formats
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34659 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: cehoyos
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index b873113cb8..cee2b0bf0c 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -429,8 +429,8 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
}
out_offset = 0;
// We can easily "emulate" non-native RGB32 and BGR32
- if (out_format == (IMGFMT_BGR32 | 64) || out_format == (IMGFMT_RGB32 | 64)) {
- out_format &= ~64;
+ if (out_format == (IMGFMT_BGR32 | 128) || out_format == (IMGFMT_RGB32 | 128)) {
+ out_format &= ~128;
#if BYTE_ORDER == BIG_ENDIAN
out_offset = 1;
#else