mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
only store command line parameters in contexts with matching codec_type
Originally committed as revision 8282 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
289a8e4d28
commit
2d0aefd626
9
ffmpeg.c
9
ffmpeg.c
@ -3507,9 +3507,14 @@ static void show_version(void)
|
|||||||
|
|
||||||
static int opt_default(const char *opt, const char *arg){
|
static int opt_default(const char *opt, const char *arg){
|
||||||
int type;
|
int type;
|
||||||
const AVOption *o;
|
const AVOption *o= NULL;
|
||||||
for(type=0; type<CODEC_TYPE_NB; type++)
|
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);
|
o = av_set_string(avctx_opts[type], opt, arg);
|
||||||
|
}
|
||||||
if(!o)
|
if(!o)
|
||||||
o = av_set_string(avformat_opts, opt, arg);
|
o = av_set_string(avformat_opts, opt, arg);
|
||||||
if(!o){
|
if(!o){
|
||||||
|
Loading…
Reference in New Issue
Block a user