media: vicodec: use v4l2_m2m_buf_copy_data
Use the new v4l2_m2m_buf_copy_data() function in vicodec. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
7aca565ee3
commit
96bddd5ff5
|
@ -190,18 +190,8 @@ static int device_process(struct vicodec_ctx *ctx,
|
|||
}
|
||||
|
||||
dst_vb->sequence = q_dst->sequence++;
|
||||
dst_vb->vb2_buf.timestamp = src_vb->vb2_buf.timestamp;
|
||||
|
||||
if (src_vb->flags & V4L2_BUF_FLAG_TIMECODE)
|
||||
dst_vb->timecode = src_vb->timecode;
|
||||
dst_vb->field = src_vb->field;
|
||||
dst_vb->flags &= ~V4L2_BUF_FLAG_LAST;
|
||||
dst_vb->flags |= src_vb->flags &
|
||||
(V4L2_BUF_FLAG_TIMECODE |
|
||||
V4L2_BUF_FLAG_KEYFRAME |
|
||||
V4L2_BUF_FLAG_PFRAME |
|
||||
V4L2_BUF_FLAG_BFRAME |
|
||||
V4L2_BUF_FLAG_TSTAMP_SRC_MASK);
|
||||
v4l2_m2m_buf_copy_data(src_vb, dst_vb, !ctx->is_enc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue