diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-08-23 07:43:54 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-03 20:58:15 +0200 |
commit | 20c21f8b759cd4e759208f85dd6e34991c959043 (patch) | |
tree | 2c46aef04a11be415c8f37a8cbd765e52531cd25 /avconv.c | |
parent | fb4ca26bdbddfbbf21a2a212485d225438b4b234 (diff) | |
download | ffmpeg-20c21f8b759cd4e759208f85dd6e34991c959043.tar.gz |
cmdutils: get rid of dummy contexts for examining AVOptions.
Replace it with newly introduced libavutil API.
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -3782,6 +3782,7 @@ static void show_help(void) AVCodec *c; AVOutputFormat *oformat = NULL; AVInputFormat *iformat = NULL; + const AVClass *class; av_log_set_callback(log_callback_help); show_usage(); @@ -3809,7 +3810,8 @@ static void show_help(void) OPT_GRAB, OPT_GRAB); printf("\n"); - av_opt_show2(avcodec_opts[0], NULL, AV_OPT_FLAG_ENCODING_PARAM|AV_OPT_FLAG_DECODING_PARAM, 0); + class = avcodec_get_class(); + av_opt_show2(&class, NULL, AV_OPT_FLAG_ENCODING_PARAM|AV_OPT_FLAG_DECODING_PARAM, 0); printf("\n"); /* individual codec options */ @@ -3821,7 +3823,8 @@ static void show_help(void) } } - av_opt_show2(avformat_opts, NULL, AV_OPT_FLAG_ENCODING_PARAM|AV_OPT_FLAG_DECODING_PARAM, 0); + class = avformat_get_class(); + av_opt_show2(&class, NULL, AV_OPT_FLAG_ENCODING_PARAM|AV_OPT_FLAG_DECODING_PARAM, 0); printf("\n"); /* individual muxer options */ @@ -3840,7 +3843,8 @@ static void show_help(void) } } - av_opt_show2(sws_opts, NULL, AV_OPT_FLAG_ENCODING_PARAM|AV_OPT_FLAG_DECODING_PARAM, 0); + class = sws_get_class(); + av_opt_show2(&class, NULL, AV_OPT_FLAG_ENCODING_PARAM|AV_OPT_FLAG_DECODING_PARAM, 0); } static int opt_target(const char *opt, const char *arg) |