Commit 478f0dcf authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

v4l2bufferpool: Fix missing condition in previous commit

parent 1e7c3e45
......@@ -254,8 +254,8 @@ gst_v4l2_buffer_pool_alloc_buffer (GstBufferPool * bpool, GstBuffer ** buffer,
case GST_VIDEO_FORMAT_NV16:
case GST_VIDEO_FORMAT_NV24:
stride[i] =
2 * GST_VIDEO_FORMAT_INFO_SCALE_WIDTH (finfo, i,
obj->bytesperline);
(i == 0 ? 1 : 2) * GST_VIDEO_FORMAT_INFO_SCALE_WIDTH (finfo,
i, obj->bytesperline);
break;
default:
stride[i] =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment