You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
fftools/ffmpeg: fix 2pass log file names
Use the global stream index rather than an unrelated variable in the
filename.
Broken in 6d5d924604
.
This commit is contained in:
@@ -1868,7 +1868,7 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in
|
|||||||
snprintf(logfilename, sizeof(logfilename), "%s-%d.log",
|
snprintf(logfilename, sizeof(logfilename), "%s-%d.log",
|
||||||
ost->logfile_prefix ? ost->logfile_prefix :
|
ost->logfile_prefix ? ost->logfile_prefix :
|
||||||
DEFAULT_PASS_LOGFILENAME_PREFIX,
|
DEFAULT_PASS_LOGFILENAME_PREFIX,
|
||||||
i);
|
nb_output_streams - 1);
|
||||||
if (!strcmp(ost->enc->name, "libx264")) {
|
if (!strcmp(ost->enc->name, "libx264")) {
|
||||||
av_dict_set(&ost->encoder_opts, "stats", logfilename, AV_DICT_DONT_OVERWRITE);
|
av_dict_set(&ost->encoder_opts, "stats", logfilename, AV_DICT_DONT_OVERWRITE);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user