summaryrefslogtreecommitdiff
path: root/avprobe.c
diff options
context:
space:
mode:
Diffstat (limited to 'avprobe.c')
-rw-r--r--avprobe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/avprobe.c b/avprobe.c
index b20c78cd34..8bc2a21459 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -59,10 +59,9 @@ static const char unit_hertz_str[] = "Hz" ;
static const char unit_byte_str[] = "byte" ;
static const char unit_bit_per_second_str[] = "bit/s";
-void exit_program(int ret)
+static void exit_program()
{
av_dict_free(&fmt_entries_to_show);
- exit(ret);
}
/*
@@ -926,6 +925,8 @@ int main(int argc, char **argv)
if (!buffer)
exit(1);
+ atexit(exit_program);
+
options = real_options;
parse_loglevel(argc, argv, options);
av_register_all();