diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-04-11 13:27:44 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-04-17 12:01:40 +0200 |
commit | 2058402e001268e8bc68b33a8979429a73ed1b74 (patch) | |
tree | e663e6833fd2e42edd360f8f10c24313fc4622e4 /fftools/ffmpeg.c | |
parent | c8fa58430edd6b2c3527d851baaa5a418e2ab9e2 (diff) | |
download | ffmpeg-2058402e001268e8bc68b33a8979429a73ed1b74.tar.gz |
fftools/ffmpeg: open decoders right after we know they are needed
Will allow initializing subtitle encoding earlier.
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r-- | fftools/ffmpeg.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index ba92b2aa84..c2dafeb46e 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1882,11 +1882,6 @@ static int transcode_init(void) ifile->streams[j]->start = av_gettime_relative(); } - /* init input streams */ - for (InputStream *ist = ist_iter(NULL); ist; ist = ist_iter(ist)) - if (ist->decoding_needed && (ret = dec_open(ist)) < 0) - goto dump_format; - /* * initialize stream copy and subtitle/data streams. * Encoded AVFrame based streams will get initialized when the first AVFrame |