]> git.sesse.net Git - ffmpeg/commit
avdevice: use av_gettime_relative() for elapsed time calculations
authorMarton Balint <cus@passwd.hu>
Sat, 6 Feb 2021 23:55:25 +0000 (00:55 +0100)
committerMarton Balint <cus@passwd.hu>
Sat, 27 Feb 2021 20:41:50 +0000 (21:41 +0100)
commit2d32aed85c4874a2596202b6f0c08e6ce49e3bca
tree3a59a78746a61ffa1bcf93774d6e4ef009bf3fc7
parent529bf5daf2935fb87787d7f7a5263e1b254d59d2
avdevice: use av_gettime_relative() for elapsed time calculations

av_gettime_relative() is using the monotonic clock therefore more suitable for
elapsed time calculations. Packet timestamps are still kept absolute, although
that should be configurable in the future.

Related to ticket #9089.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavdevice/bktr.c
libavdevice/fbdev_dec.c
libavdevice/gdigrab.c
libavdevice/kmsgrab.c
libavdevice/xcbgrab.c