vlc | branch: master | Natanael Copa <[email protected]> | Wed Dec 20 
15:56:24 2017 +0000| [9e0b898f17058fc0621e2dbe88a4bc52f56b642f] | committer: 
Hugo Beauzée-Luyssen

chroma: fix chroma copy tests on big endian

Signed-off-by: Natanael Copa <[email protected]>
Signed-off-by: Hugo Beauzée-Luyssen <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e0b898f17058fc0621e2dbe88a4bc52f56b642f
---

 modules/video_chroma/copy.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_chroma/copy.c b/modules/video_chroma/copy.c
index 67e147637b..35721ebc93 100644
--- a/modules/video_chroma/copy.c
+++ b/modules/video_chroma/copy.c
@@ -983,10 +983,10 @@ static void piccheck(picture_t *pic, const 
vlc_chroma_description_t *dsc,
 
     assert(pic->i_planes == 2 || pic->i_planes == 3);
     const uint8_t colors_8_P[3] = { 0x42, 0xF1, 0x36 };
-    const uint16_t color_8_UV = 0x36F1;
+    const uint16_t color_8_UV = ntoh16(0xF136);
 
-    const uint16_t colors_16_P[3] = { 0x4210, 0x14F1, 0x4536 };
-    const uint32_t color_16_UV = 0x453614F1;
+    const uint16_t colors_16_P[3] = { ntoh16(0x1042), ntoh16(0xF114), 
ntoh16(0x3645) };
+    const uint32_t color_16_UV = ntoh32(0xF1143645);
 
     assert(dsc->pixel_size == 1 || dsc->pixel_size == 2);
     if (dsc->pixel_size == 1)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to