media: videobuf2-v4l2: copy user image sequence for output video

Video output device is images from user space to the driver,
Sequence set to 0 default when fill vb2 buffer. For driver maybe
need image sequence information.

Change-Id: I34f39a98c6fa8dfa1ea2c45cfa7e6b20114236a3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2021-07-16 15:37:20 +08:00
committed by Tao Huang
parent 48d73c60c2
commit 05ef3436f7

View File

@@ -479,6 +479,8 @@ static int __fill_vb2_buffer(struct vb2_buffer *vb,
*/
vbuf->flags &= ~V4L2_BUF_FLAG_TIMECODE;
vbuf->field = b->field;
/* get image sequence from user space */
vbuf->sequence = b->sequence;
} else {
/* Zero any output buffer flags as this is a capture buffer */
vbuf->flags &= ~V4L2_BUFFER_OUT_FLAGS;