vlc | branch: master | A. Wilcox <[email protected]> | Tue Jul 31 
04:27:28 2018 -0500| [1139dbe59f2c34ef8999c80ab388a8a4576da2e4] | committer: 
Jean-Baptiste Kempf

video_chroma: test properly on big-endian

Close #20937

Signed-off-by: Filip Roséen <[email protected]>
Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 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);
     }

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

Reply via email to