From: Hans Verkuil <hans.verkuil@xxxxxxxxx> Copy cookies in vicodec. Signed-off-by: Hans Verkuil <hans.verkuil@xxxxxxxxx> --- drivers/media/platform/vicodec/vicodec-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-core.c index b292cff26c86..f0bc499bda62 100644 --- a/drivers/media/platform/vicodec/vicodec-core.c +++ b/drivers/media/platform/vicodec/vicodec-core.c @@ -194,10 +194,13 @@ static int device_process(struct vicodec_ctx *ctx, if (in_vb->flags & V4L2_BUF_FLAG_TIMECODE) out_vb->timecode = in_vb->timecode; + else if (in_vb->flags & V4L2_BUF_FLAG_COOKIE) + out_vb->cookie = in_vb->cookie; out_vb->field = in_vb->field; out_vb->flags &= ~V4L2_BUF_FLAG_LAST; out_vb->flags |= in_vb->flags & (V4L2_BUF_FLAG_TIMECODE | + V4L2_BUF_FLAG_COOKIE | V4L2_BUF_FLAG_KEYFRAME | V4L2_BUF_FLAG_PFRAME | V4L2_BUF_FLAG_BFRAME | -- 2.19.1