diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2012-09-05 07:03:56 +0000 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2012-10-01 17:17:42 -0400 |
commit | 5e3f9979fae32fe837dab6cff5bde7de3c387611 (patch) | |
tree | 0c7f80cc8a57a4d93c316ed961f330ed3282f19f /avprobe.c | |
parent | bd680c7b49ba665467cb00664667928bbca516a9 (diff) | |
download | ffmpeg-5e3f9979fae32fe837dab6cff5bde7de3c387611.tar.gz |
Use atexit() instead of defining a custom exit_program() interface.
Diffstat (limited to 'avprobe.c')
-rw-r--r-- | avprobe.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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(); |