mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avprobe: correctly set the default formatter
This commit is contained in:
parent
b75726cb79
commit
43b50e62c4
19
avprobe.c
19
avprobe.c
@ -933,6 +933,16 @@ int main(int argc, char **argv)
|
||||
#endif
|
||||
|
||||
show_banner();
|
||||
|
||||
octx.print_header = ini_print_header;
|
||||
octx.print_footer = ini_print_footer;
|
||||
|
||||
octx.print_array_header = ini_print_array_header;
|
||||
octx.print_object_header = ini_print_object_header;
|
||||
|
||||
octx.print_integer = ini_print_integer;
|
||||
octx.print_string = ini_print_string;
|
||||
|
||||
parse_options(NULL, argc, argv, options, opt_input_file);
|
||||
|
||||
if (!input_filename) {
|
||||
@ -949,15 +959,6 @@ int main(int argc, char **argv)
|
||||
if (!probe_out)
|
||||
exit(1);
|
||||
|
||||
octx.print_header = ini_print_header;
|
||||
octx.print_footer = ini_print_footer;
|
||||
|
||||
octx.print_array_header = ini_print_array_header;
|
||||
octx.print_object_header = ini_print_object_header;
|
||||
|
||||
octx.print_integer = ini_print_integer;
|
||||
octx.print_string = ini_print_string;
|
||||
|
||||
probe_header();
|
||||
ret = probe_file(input_filename);
|
||||
probe_footer();
|
||||
|
Loading…
Reference in New Issue
Block a user