video_chroma: test properly on big-endian
authorA. Wilcox <AWilcox@Wilcox-Tech.com>
Tue, 31 Jul 2018 09:27:28 +0000 (04:27 -0500)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 1 Aug 2018 13:17:57 +0000 (15:17 +0200)
Close #20937

Signed-off-by: Filip Roséen <filip@atch.se>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_chroma/copy.c

index 1ccf12f..b0cf4a1 100644 (file)
@@ -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);
     }