mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
staging: bcm2835-camera: Correctly denote key frames in encoded data
Forward MMAL key frame flags to the V4L2 buffers. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Acked-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a1120db357
commit
c497916149
1 changed files with 3 additions and 0 deletions
|
@ -376,6 +376,9 @@ static void buffer_cb(struct vchiq_mmal_instance *instance,
|
|||
}
|
||||
|
||||
vb2_set_plane_payload(&buf->vb.vb2_buf, 0, length);
|
||||
if (mmal_flags & MMAL_BUFFER_HEADER_FLAG_KEYFRAME)
|
||||
buf->vb.flags |= V4L2_BUF_FLAG_KEYFRAME;
|
||||
|
||||
vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
|
||||
|
||||
if (mmal_flags & MMAL_BUFFER_HEADER_FLAG_EOS &&
|
||||
|
|
Loading…
Reference in a new issue