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 <[email protected]>
  • Loading branch information
6by9 authored and popcornmix committed Mar 1, 2017
1 parent 357ad58 commit 0c6ddbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/platform/bcm2835/bcm2835-camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,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 0c6ddbc

Please sign in to comment.