opengl: don't shift the range for P016

Just like P010
This commit is contained in:
Steve Lhomme 2019-09-10 10:27:13 +02:00
parent 513c814194
commit 71d333b483
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,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 */
if (chroma != VLC_CODEC_P010)
if (chroma != VLC_CODEC_P010 && chroma != VLC_CODEC_P016)
yuv_range_correction = (float)((1 << 16) - 1)
/ ((1 << desc->pixel_bits) - 1);
}