diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-05-20 11:06:20 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-05-24 13:35:16 +0200 |
commit | e53940186a08a6ea2dd06857965487ff07eb13d8 (patch) | |
tree | 2e194b3ce401a25c5796f6dcc9efd5e7e74502eb /fftools/ffmpeg_opt.c | |
parent | 83560e48f6d184e3ca3a904b77e92c0c7316aee8 (diff) | |
download | ffmpeg-e53940186a08a6ea2dd06857965487ff07eb13d8.tar.gz |
fftools/ffmpeg: fix 2pass log file names
Use the global stream index rather than an unrelated variable in the
filename.
Broken in 6d5d9246042.
Diffstat (limited to 'fftools/ffmpeg_opt.c')
-rw-r--r-- | fftools/ffmpeg_opt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index a5cd989d35..2c1b3bd0dd 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -1868,7 +1868,7 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in snprintf(logfilename, sizeof(logfilename), "%s-%d.log", ost->logfile_prefix ? ost->logfile_prefix : DEFAULT_PASS_LOGFILENAME_PREFIX, - i); + nb_output_streams - 1); if (!strcmp(ost->enc->name, "libx264")) { av_dict_set(&ost->encoder_opts, "stats", logfilename, AV_DICT_DONT_OVERWRITE); } else { |