From ce9bac465a4b088be42efba8e8d4478214f80901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 17 Mar 2017 13:43:04 +0200 Subject: [PATCH] video-format: Shift correctly when packing I420_12BE --- gst-libs/gst/video/video-format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/video/video-format.c b/gst-libs/gst/video/video-format.c index b4b74f56f7..6117e7e2f5 100644 --- a/gst-libs/gst/video/video-format.c +++ b/gst-libs/gst/video/video-format.c @@ -3501,7 +3501,7 @@ pack_I420_12BE (const GstVideoFormatInfo * info, GstVideoPackFlags flags, } } else { for (i = 0; i < width; i++) { - Y0 = s[i * 4 + 1] >> 6; + Y0 = s[i * 4 + 1] >> 4; GST_WRITE_UINT16_BE (dy + i, Y0); } }