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 /avprobe.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 'avprobe.c')
-rw-r--r-- | avprobe.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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; } |