Commit b6beceb3 authored by michael's avatar michael

only store command line parameters in contexts with matching codec_type


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8282 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 36f49bfc
......@@ -3507,9 +3507,14 @@ static void show_version(void)
static int opt_default(const char *opt, const char *arg){
int type;
const AVOption *o;
for(type=0; type<CODEC_TYPE_NB; type++)
const AVOption *o= NULL;
int opt_types[]={AV_OPT_FLAG_VIDEO_PARAM, AV_OPT_FLAG_AUDIO_PARAM, 0, AV_OPT_FLAG_SUBTITLE_PARAM, 0};
for(type=0; type<CODEC_TYPE_NB; type++){
const AVOption *o2 = av_find_opt(avctx_opts[0], opt, NULL, opt_types[type], opt_types[type]);
if(o2)
o = av_set_string(avctx_opts[type], opt, arg);
}
if(!o)
o = av_set_string(avformat_opts, opt, arg);
if(!o){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment