Skip to content

Commit c5cbb66

Browse files
dgoelpopcornmix
authored andcommitted
bcm2835-camera: fix a bug in computation of frame timestamp
Fixes #1318
1 parent 310f5af commit c5cbb66

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/media/platform/bcm2835/bcm2835-camera.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ static void buffer_cb(struct vchiq_mmal_instance *instance,
360360
div =
361361
div_u64_rem(runtime_us, USEC_PER_SEC, &rem);
362362
buf->vb.timestamp.tv_sec =
363-
dev->capture.kernel_start_ts.tv_sec - 1 +
364-
div;
363+
dev->capture.kernel_start_ts.tv_sec + div;
365364
buf->vb.timestamp.tv_usec =
366365
dev->capture.kernel_start_ts.tv_usec + rem;
367366

0 commit comments

Comments
 (0)