Skip to content

Commit

Permalink
bcm2835-camera: fix a bug in computation of frame timestamp
Browse files Browse the repository at this point in the history
Fixes #1318
  • Loading branch information
dgoel authored and popcornmix committed Apr 13, 2016
1 parent 29ef94e commit 640f25a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/platform/bcm2835/bcm2835-camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,7 @@ static void buffer_cb(struct vchiq_mmal_instance *instance,
div =
div_u64_rem(runtime_us, USEC_PER_SEC, &rem);
buf->vb.timestamp.tv_sec =
dev->capture.kernel_start_ts.tv_sec - 1 +
div;
dev->capture.kernel_start_ts.tv_sec + div;
buf->vb.timestamp.tv_usec =
dev->capture.kernel_start_ts.tv_usec + rem;

Expand Down

0 comments on commit 640f25a

Please sign in to comment.