aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref/lavf
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-04-24 12:28:13 +0200
committerAnton Khirnov <anton@khirnov.net>2023-05-02 10:59:24 +0200
commitd85c6aba0cf27db2a6c4dfa3452cfb9c248d1b4a (patch)
tree2cc717199739690512fc066f32b6ad74ce71324f /tests/ref/lavf
parent6bbea932ca9a0f124b713bef361a9e4ef19d2583 (diff)
downloadffmpeg-d85c6aba0cf27db2a6c4dfa3452cfb9c248d1b4a.tar.gz
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.
Diffstat (limited to 'tests/ref/lavf')
-rw-r--r--tests/ref/lavf/smjpeg2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ref/lavf/smjpeg b/tests/ref/lavf/smjpeg
index 94172a6b1e..537c0847cb 100644
--- a/tests/ref/lavf/smjpeg
+++ b/tests/ref/lavf/smjpeg
@@ -1,3 +1,3 @@
3fe90213ac4f5275eb85ad0a4e4bdb44 *tests/data/lavf/lavf.smjpeg
728642 tests/data/lavf/lavf.smjpeg
-tests/data/lavf/lavf.smjpeg CRC=0x75066147
+tests/data/lavf/lavf.smjpeg CRC=0x54bf6147