fftools/ffmpeg: simplify tracking -readrate start time

There is no point in having a per-stream wallclock start time, since
they are all computed at the same instant. Keep a per-file start time
instead, initialized when the demuxer thread starts.
This commit is contained in:
Anton Khirnov
2023-05-07 18:01:19 +02:00
parent 6b0c984f0d
commit f9657b7443
3 changed files with 5 additions and 11 deletions

View File

@@ -1498,14 +1498,6 @@ static int transcode_init(void)
{
int ret = 0;
/* init framerate emulation */
for (int i = 0; i < nb_input_files; i++) {
InputFile *ifile = input_files[i];
if (ifile->readrate)
for (int j = 0; j < ifile->nb_streams; j++)
ifile->streams[j]->start = av_gettime_relative();
}
/* discard unused programs */
for (int i = 0; i < nb_input_files; i++) {
InputFile *ifile = input_files[i];