mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 12:56:41 +07:00
media: coda: use v4l2_m2m_buf_copy_metadata
Use v4l2_m2m2_buf_copy_metadata to let BIT encoder contexts copy buffer field, timestamp, timestamp flags, and optionally timecode. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> 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
7edd18b64a
commit
b65f1e6546
@ -1506,12 +1506,7 @@ static void coda_finish_encode(struct coda_ctx *ctx)
|
||||
dst_buf->flags &= ~V4L2_BUF_FLAG_KEYFRAME;
|
||||
}
|
||||
|
||||
dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp;
|
||||
dst_buf->field = src_buf->field;
|
||||
dst_buf->flags &= ~V4L2_BUF_FLAG_TSTAMP_SRC_MASK;
|
||||
dst_buf->flags |=
|
||||
src_buf->flags & V4L2_BUF_FLAG_TSTAMP_SRC_MASK;
|
||||
dst_buf->timecode = src_buf->timecode;
|
||||
v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, false);
|
||||
|
||||
v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_DONE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user