Commit 6b974cd8 authored by Thomas Guillem's avatar Thomas Guillem

opengl: only VLC_CODEC_P010 is aligned on MSB

(cherry picked from commit 215f3720)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 4158368c
......@@ -127,9 +127,7 @@ tc_yuv_base_init(opengl_tex_converter_t *tc, GLenum tex_target,
return VLC_EGENERIC;
/* Do a bit shift if samples are stored on LSB */
/* This is a hackish way to detect endianness. FIXME: Add bit order
* in vlc_chroma_description_t */
if ((chroma >> 24) == 'L')
if (chroma != VLC_CODEC_P010)
yuv_range_correction = (float)((1 << 16) - 1)
/ ((1 << desc->pixel_bits) - 1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment