From 20c21f8b759cd4e759208f85dd6e34991c959043 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 23 Aug 2011 07:43:54 +0200 Subject: cmdutils: get rid of dummy contexts for examining AVOptions. Replace it with newly introduced libavutil API. --- avprobe.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'avprobe.c') diff --git a/avprobe.c b/avprobe.c index d502421416..f0ba6bae09 100644 --- a/avprobe.c +++ b/avprobe.c @@ -355,11 +355,12 @@ static void opt_input_file(const char *arg) static void show_help(void) { + const AVClass *class = avformat_get_class(); av_log_set_callback(log_callback_help); show_usage(); show_help_options(options, "Main options:\n", 0, 0); printf("\n"); - av_opt_show2(avformat_opts, NULL, + av_opt_show2(&class, NULL, AV_OPT_FLAG_DECODING_PARAM, 0); } @@ -399,8 +400,6 @@ int main(int argc, char **argv) avdevice_register_all(); #endif - avformat_opts = avformat_alloc_context(); - show_banner(); parse_options(argc, argv, options, opt_input_file); @@ -413,7 +412,5 @@ int main(int argc, char **argv) ret = probe_file(input_filename); - av_free(avformat_opts); - return ret; } -- cgit v1.2.3