aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref/lavf/rgb4_byte.xwd
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/rgb4_byte.xwd
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/rgb4_byte.xwd')
0 files changed, 0 insertions, 0 deletions