From d4863fc1a83ceab1d75469b406a2c67e5659b2a0 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 28 Jul 2011 16:47:38 +0200 Subject: cmdutils: allow precisely specifying a stream for AVOptions. --- ffmpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ffmpeg.c') diff --git a/ffmpeg.c b/ffmpeg.c index 1a6ba51..079384b 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -683,7 +683,7 @@ static OutputStream *new_output_stream(AVFormatContext *oc, int file_idx, AVCode ost->st = st; ost->enc = codec; if (codec) - ost->opts = filter_codec_opts(codec_opts, codec->id, 1); + ost->opts = filter_codec_opts(codec_opts, codec->id, oc, st); avcodec_get_context_defaults3(st->codec, codec); @@ -3293,7 +3293,7 @@ static int opt_input_file(const char *opt, const char *filename) ist->st = st; ist->file_index = nb_input_files; ist->discard = 1; - ist->opts = filter_codec_opts(codec_opts, ist->st->codec->codec_id, 0); + ist->opts = filter_codec_opts(codec_opts, ist->st->codec->codec_id, ic, st); if (i < nb_ts_scale) ist->ts_scale = ts_scale[i]; -- cgit v1.1