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 Mar 8, 2016
1 parent c0dee06 commit 3d1ed89
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 @@ -361,8 +361,7 @@ static void buffer_cb(struct vchiq_mmal_instance *instance,
div =
div_u64_rem(runtime_us, USEC_PER_SEC, &rem);
timestamp.tv_sec =
dev->capture.kernel_start_ts.tv_sec - 1 +
div;
dev->capture.kernel_start_ts.tv_sec + div;
timestamp.tv_usec =
dev->capture.kernel_start_ts.tv_usec + rem;

Expand Down

0 comments on commit 3d1ed89

Please sign in to comment.