video: fix unpack_Y410

It should handle data starting from x
This commit is contained in:
Haihao Xiang 2019-03-25 15:05:48 +08:00
parent 4ab04e5dea
commit a6afa88812

View file

@ -899,6 +899,8 @@ unpack_Y410 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
guint32 AVYU;
guint16 A, Y, U, V;
s += x * 4;
for (i = 0; i < width; i++) {
AVYU = GST_READ_UINT32_LE (s + 4 * i);