[media] [FOR,v3.3] uvcvideo: Avoid division by 0 in timestamp calculation
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 15 Jan 2012 16:53:45 +0000 (13:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 27 Feb 2012 16:16:22 +0000 (13:16 -0300)
commit8e57dec0454d8a3ba987d18b3ab19922c766d4bc
tree3a1fc754e6bb355b8b0a86100ce661392606a73d
parentfda27874de91d5a8b9a018b3bc74b14578994908
[media] [FOR,v3.3] uvcvideo: Avoid division by 0 in timestamp calculation

Use system timestamps if the timestamp can't be computed from the data
sent by the device.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_video.c