diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-03-12 17:42:57 +0100 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2012-03-14 20:57:11 +0100 |
commit | 666bd5848a92f82ee97ad0869dd1f8c7edb9f214 (patch) | |
tree | 4e2861295d638ab2e4e1eba45655a73eec7d7d78 /avconv.c | |
parent | d94256d36cc789788a68c6b35d31481c4b16fdd3 (diff) | |
download | ffmpeg-666bd5848a92f82ee97ad0869dd1f8c7edb9f214.tar.gz |
avconv: link '-passlogfile' option to libx264 'stats' AVOption.
Fixes bug 204.
CC: libav-stable@libav.org
(cherry picked from commit 6e8be949f12734f38d360aad0f5c503a0f9606fa)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2459,6 +2459,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) { @@ -2477,6 +2480,7 @@ static int transcode_init(OutputFile *output_files, } codec->stats_in = logbuffer; } + } } } if (codec->codec_type == AVMEDIA_TYPE_VIDEO) { |