mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avconv: link '-passlogfile' option to libx264 'stats' AVOption.
Fixes bug 204. CC: libav-stable@libav.org
This commit is contained in:
parent
d533e395e1
commit
6e8be949f1
4
avconv.c
4
avconv.c
@ -2497,6 +2497,9 @@ static int transcode_init(OutputFile *output_files,
|
||||
snprintf(logfilename, sizeof(logfilename), "%s-%d.log",
|
||||
pass_logfilename_prefix ? pass_logfilename_prefix : DEFAULT_PASS_LOGFILENAME_PREFIX,
|
||||
i);
|
||||
if (!strcmp(ost->enc->name, "libx264")) {
|
||||
av_dict_set(&ost->opts, "stats", logfilename, AV_DICT_DONT_OVERWRITE);
|
||||
} else {
|
||||
if (codec->flags & CODEC_FLAG_PASS1) {
|
||||
f = fopen(logfilename, "wb");
|
||||
if (!f) {
|
||||
@ -2515,6 +2518,7 @@ static int transcode_init(OutputFile *output_files,
|
||||
}
|
||||
codec->stats_in = logbuffer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user