mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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).
This commit is contained in:
parent
de7e5e481d
commit
cff050884c
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue