Anton Khirnov d85c6aba0c fftools/ffmpeg: rework audio-decode timestamp handling
Stop using InputStream.dts for generating missing timestamps for decoded
frames, because it contains pre-decoding timestamps and there may be
arbitrary amount of delay between input packets and output frames (e.g.
dependent on the thread count when frame threading is used). It is also
in AV_TIME_BASE (i.e. microseconds), which may introduce unnecessary
rounding issues.

New code maintains a timebase that is the inverse of the LCM of all the
samplerates seen so far, and thus can accurately represent every audio
sample. This timebase is used to generate missing timestamps after
decoding.

Changes the result of the following FATE tests
* pcm_dvd-16-5.1-96000
* lavf-smjpeg
* adpcm-ima-smjpeg
In all of these the timestamps now better correspond to actual frame
durations.
2023-05-02 10:59:24 +02:00
..
aic
amv
ast
bfi
2022-11-06 14:39:27 +01:00
2022-11-06 14:39:27 +01:00
crc
dpx
2023-04-22 11:20:58 -03:00
imf
2022-11-03 21:16:10 +10:00
2023-02-18 14:41:20 -08:00
2023-04-21 09:55:12 -04:00
2023-04-21 09:55:12 -04:00
jv
lfg
m4v
md5
mkv
2023-03-15 00:12:59 +08:00
mtv
2022-09-20 11:26:00 +02:00
opt
ptx
rl2
2022-10-02 20:27:36 +02:00
sha
smc
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2023-01-13 11:22:59 -06:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
2022-09-13 14:50:01 +02:00
tea
thp
tmv
2022-11-06 14:39:27 +01:00
url
vb
vp4
vp5
vp7
vqc
2022-11-07 16:08:35 +11:00
w64
yop