diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-05-07 18:01:19 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-05-15 13:32:01 +0200 |
commit | f9657b7443f674c159f305a6033b985d034d0f3b (patch) | |
tree | ce85e60655c16d202a9b52e0fc2c4f70203ea10c /fftools/ffmpeg.c | |
parent | 6b0c984f0dfe632ec0d59fb12c8880240c5208c0 (diff) | |
download | ffmpeg-f9657b7443f674c159f305a6033b985d034d0f3b.tar.gz |
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.
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r-- | fftools/ffmpeg.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 9cf94f2a22..40e97ad486 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -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]; |