aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aarch64/vorbisdsp_init.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-10-11 17:43:51 +0200
committerAnton Khirnov <anton@khirnov.net>2023-11-14 18:18:26 +0100
commit889a022cceea88072e3b9716af3d7c795728f5c5 (patch)
treee92950af597ea5a4a15a41f952af1285a9753866 /libavcodec/aarch64/vorbisdsp_init.c
parent87016e031ffa2ed99d466e99a1d7fc68f7bdd8e7 (diff)
downloadffmpeg-889a022cceea88072e3b9716af3d7c795728f5c5.tar.gz
fftools/ffmpeg: rework keeping track of file duration for -stream_loop
Current code tracks min/max pts for each stream separately; then when the file ends it combines them with last frame's duration to compute the total duration of each stream; finally it selects the longest of those durations as the file duration. This is incorrect - the total file duration is the largest timestamp difference between any frames, regardless of the stream. Also change the way the last frame information is reported from decoders to the muxer - previously it would be just the last frame's duration, now the end timestamp is sent, which is simpler. Changes the result of the fate-ffmpeg-streamloop-transcode-av test, where the timestamps are shifted slightly forward. Note that the matroska demuxer does not return the first audio packet after seeking (due to buggy interaction betwen the generic code and the demuxer), so there is a gap in audio.
Diffstat (limited to 'libavcodec/aarch64/vorbisdsp_init.c')
0 files changed, 0 insertions, 0 deletions