[FFmpeg-devel] [PATCH] libavutil/timestamp.h: Fix loss of precision in timestamps
Allan Cady
allancady at yahoo.com
Sun May 31 07:38:38 EEST 2020
I prepared this patch a year ago but never followed through to get it accepted. Thought I would give it another try. I've been using a local copy with these changes, and for me it makes the difference between silencedetect being usable or not.
Brief description: The existing implementation of the silencedetect filter uses the format specifier "%.6g", which keeps a fixed-width, and so loses precision as the time offsets get larger. I propose changing to "%.6f", which keeps six decimal digits precision no matter how large the offset.
Further explanation in the patch comments.
New patch attached, and here is the last correspondence I had with y'all last year.
https://ffmpeg.org/pipermail/ffmpeg-devel/2019-April/242233.htmlÂ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavutil-timestamp.h-Fix-loss-of-precision-in-times.patch
Type: text/x-patch
Size: 7328 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200531/5c57bef9/attachment.bin>
More information about the ffmpeg-devel
mailing list