From 1139dbe59f2c34ef8999c80ab388a8a4576da2e4 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 31 Jul 2018 04:27:28 -0500 Subject: [PATCH] video_chroma: test properly on big-endian MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Close #20937 Signed-off-by: Filip Roséen Signed-off-by: Jean-Baptiste Kempf --- modules/video_chroma/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/video_chroma/copy.c b/modules/video_chroma/copy.c index 1ccf12fe15..b0cf4a1042 100644 --- a/modules/video_chroma/copy.c +++ b/modules/video_chroma/copy.c @@ -1075,7 +1075,7 @@ static void piccheck(picture_t *pic, const vlc_chroma_description_t *dsc, vlc_assert_unreachable(); } - uint32_t color_16_UV = (colors_16_P[2] << 16) | colors_16_P[1]; + uint32_t color_16_UV = GetDWLE( &colors_16_P[1] ); PICCHECK(uint16_t, uint32_t, colors_16_P, color_16_UV, 2); } -- 2.11.4.GIT