From cff050884cf08e016d6504f16797a6b8802ff79e Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Tue, 13 May 2014 13:44:20 -0400 Subject: [PATCH] v4l2object: Fix regression in offset extrapolation When extrapolating the offset, we need to use the extrapolate stride rather then the base stride. This should fix support for format with more then two planes (I420, Y42B, etc). --- sys/v4l2/gstv4l2object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index e624db6fcf..b4050e3a0a 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -2319,7 +2319,7 @@ gst_v4l2_object_extrapolate_info (GstV4l2Object * v4l2object, gst_v4l2_object_set_stride (info, align, i, estride); info->offset[i] = offs; - offs += stride * + offs += estride * GST_VIDEO_FORMAT_INFO_SCALE_HEIGHT (finfo, i, padded_height); GST_DEBUG_OBJECT (v4l2object->element,