Commit 96bddd5f authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

media: vicodec: use v4l2_m2m_buf_copy_data

Use the new v4l2_m2m_buf_copy_data() function in vicodec.
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 7aca565e
...@@ -190,18 +190,8 @@ static int device_process(struct vicodec_ctx *ctx, ...@@ -190,18 +190,8 @@ static int device_process(struct vicodec_ctx *ctx,
} }
dst_vb->sequence = q_dst->sequence++; 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 &= ~V4L2_BUF_FLAG_LAST;
dst_vb->flags |= src_vb->flags & v4l2_m2m_buf_copy_data(src_vb, dst_vb, !ctx->is_enc);
(V4L2_BUF_FLAG_TIMECODE |
V4L2_BUF_FLAG_KEYFRAME |
V4L2_BUF_FLAG_PFRAME |
V4L2_BUF_FLAG_BFRAME |
V4L2_BUF_FLAG_TSTAMP_SRC_MASK);
return 0; return 0;
} }
......
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