Skip to content

Commit

Permalink
BCM2835-V4L2: Correctly denote key frames in encoded data
Browse files Browse the repository at this point in the history
Forward MMAL key frame flags to the V4L2 buffers.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
  • Loading branch information
6by9 authored and popcornmix committed Apr 3, 2018
1 parent e3a3d4f commit bca0363
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ static void buffer_cb(struct vchiq_mmal_instance *instance,
dev->capture.last_timestamp = buf->vb.vb2_buf.timestamp;

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;

v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev,
"Buffer has ts %llu",
dev->capture.last_timestamp);
Expand Down

0 comments on commit bca0363

Please sign in to comment.