aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api/api-seek-test.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2025-07-23 20:04:53 +0200
committerKacper Michajłow <kasper93@gmail.com>2025-08-04 03:59:42 +0000
commitbc3cc0a6af44adc63caf4e5097fcfebd7a7475b4 (patch)
tree05679e5bfd04f5ed88ee6857058ca9fb812d89be /tests/api/api-seek-test.c
parente916f55c91e179bfda14eac8f444a30e22097559 (diff)
downloadffmpeg-bc3cc0a6af44adc63caf4e5097fcfebd7a7475b4.tar.gz
avformat/lrcdec: support arbitrary precision timestamp
Apparently files with milliseconds exist in the wild. And since it cost nothing to support arbitrary number of digits, extend format to support that. Depending on number of digits, the time base of fractional part is changing. Most LRCs use 2 digits and centiseconds base, but subs with 3 digits and miliseconds exist too. Set internal time base to AV_TIME_BASE, which in parcitice allows to hold microseconds with 6 digits. Totally artificial, but who knows maybe someone wants that. Fixes: #11677 Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
Diffstat (limited to 'tests/api/api-seek-test.c')
0 files changed, 0 insertions, 0 deletions