diff options
author | Martin Storsjö <martin@martin.st> | 2012-06-30 01:28:02 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-06-30 15:44:10 +0300 |
commit | d3ed1c9571c24d33fc485fba01bc2d6ed4de18b1 (patch) | |
tree | cd4ff36e5977961e2171b4f133ceced1f7dc76be /avconv.c | |
parent | 5a608a239b8193a420df7b1579999b71aa12f4a8 (diff) | |
download | ffmpeg-d3ed1c9571c24d33fc485fba01bc2d6ed4de18b1.tar.gz |
cmdutils: Pass the actual chosen encoder to filter_codec_opts
This allows passing the right options to encoders when there's more
than one encoder for a certain codec id.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3441,7 +3441,7 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic) ist->file_index = nb_input_files; ist->discard = 1; st->discard = AVDISCARD_ALL; - ist->opts = filter_codec_opts(codec_opts, ist->st->codec->codec_id, ic, st); + ist->opts = filter_codec_opts(codec_opts, ist->st->codec->codec_id, ic, st, NULL); ist->ts_scale = 1.0; MATCH_PER_STREAM_OPT(ts_scale, dbl, ist->ts_scale, ic, st); @@ -3768,7 +3768,7 @@ static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, e st->codec->codec_type = type; choose_encoder(o, oc, ost); if (ost->enc) { - ost->opts = filter_codec_opts(codec_opts, ost->enc->id, oc, st); + ost->opts = filter_codec_opts(codec_opts, ost->enc->id, oc, st, ost->enc); } avcodec_get_context_defaults3(st->codec, ost->enc); |