diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-05-29 13:14:10 -0700 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-05-29 14:09:43 -0700 |
commit | 43b50e62c430adca04d26901b3c957fd9ea0e453 (patch) | |
tree | 87d033cdf240757bb7347867557e2b79545024b3 /avprobe.c | |
parent | b75726cb7903c30663faadf615d41486cbb5e828 (diff) | |
download | ffmpeg-43b50e62c430adca04d26901b3c957fd9ea0e453.tar.gz |
avprobe: correctly set the default formatter
Diffstat (limited to 'avprobe.c')
-rw-r--r-- | avprobe.c | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -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(); |