[vlc-commits] video_chroma: test properly on big-endian
A. Wilcox
git at videolan.org
Wed Aug 1 15:18:06 CEST 2018
vlc | branch: master | A. Wilcox <AWilcox at Wilcox-Tech.com> | 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 <filip at atch.se>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> 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);
}
More information about the vlc-commits
mailing list