summaryrefslogtreecommitdiff
path: root/avconv_opt.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-02-27 23:22:39 +0200
committerMartin Storsjö <martin@martin.st>2013-02-28 18:30:42 +0200
commitdf0229a7caa124dcfb84c34b48d316744c467311 (patch)
tree02152a1fe97c5ef7af89016369859a8b3a133932 /avconv_opt.c
parentcb6f8245aed2c26fe95c30cd68c45983277a945a (diff)
avconv: Apply codec options to streams that are copied as well
This allows setting/overriding e.g. the bitrate parameter, which is required for the smoothstreaming muxer. Normally, the bitrate is set by the demuxer in these cases, but not all demuxers can provide it. This allows stream copy of data to the smoothstreaming muxer from such inputs. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'avconv_opt.c')
-rw-r--r--avconv_opt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/avconv_opt.c b/avconv_opt.c
index 2a40087708..7c58f49e3b 100644
--- a/avconv_opt.c
+++ b/avconv_opt.c
@@ -800,6 +800,8 @@ static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, e
preset, ost->file_index, ost->index);
exit(1);
}
+ } else {
+ ost->opts = filter_codec_opts(o->g->codec_opts, AV_CODEC_ID_NONE, oc, st, NULL);
}
avcodec_get_context_defaults3(st->codec, ost->enc);