video-format: Shift correctly when packing I420_12BE
authorSebastian Dröge <sebastian@centricular.com>
Fri, 17 Mar 2017 11:43:04 +0000 (13:43 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 17 Mar 2017 11:43:04 +0000 (13:43 +0200)
gst-libs/gst/video/video-format.c

index b4b74f5..6117e7e 100644 (file)
@@ -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);
     }
   }