mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
v4l2bufferpool: Fix missing condition in previous commit
This commit is contained in:
parent
1e7c3e4520
commit
478f0dcfe7
1 changed files with 2 additions and 2 deletions
|
@ -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] =
|
||||
|
|
Loading…
Reference in a new issue