Skip to content

Commit

Permalink
staging: bcm2835-camera: 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 Phil Elwell committed May 28, 2019
1 parent a1e4fa7 commit 0885f5a
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
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 0885f5a

Please sign in to comment.