staging: bcm2835-camera: Ensure H264 header bytes get a sensible timestamp
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Mon, 29 Oct 2018 14:21:04 +0000 (14:21 +0000)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:32:46 +0000 (16:32 +0100)
commit098796428f6dc03dddf5d32a6a9fd22f687e76c2
tree5d9e1741c780ccafe872a5517f81904751e7232e
parent1bd354134205266f0af4c674e1df298d7f33413e
staging: bcm2835-camera: Ensure H264 header bytes get a sensible timestamp

H264 header come from VC with 0 timestamps, which means they get a
strange timestamp when processed with VC/kernel start times,
particularly if used with the inline header option.
Remember the last frame timestamp and use that if set, or otherwise
use the kernel start time.

https://github.com/raspberrypi/linux/issues/1836

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h