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>
Mon, 13 May 2019 23:08:11 +0000 (00:08 +0100)
commitd4be0c7818a8ccd5e4650c8024bfdfbb931f06c9
tree6336dfa300db182ce89285917fa1f50d0e69e5af
parent3d7e5f87575f7157c76082980a877ccc18069ec1
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