diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-08 04:34:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-08 04:34:11 +0200 |
commit | f982d006bb9e5ffb6bc032e62b5f34177a83df85 (patch) | |
tree | d0c88573dd27d0633675955165a64b036cc10974 /ffprobe.c | |
parent | 4cd066b69c08cd91aa4b5e40deb4b2f5c7e651ee (diff) | |
parent | 636ced8e1dc8248a1353b416240b93d70ad03edb (diff) | |
download | ffmpeg-f982d006bb9e5ffb6bc032e62b5f34177a83df85.tar.gz |
Merge commit '636ced8e1dc8248a1353b416240b93d70ad03edb'
* commit '636ced8e1dc8248a1353b416240b93d70ad03edb':
cmdutils: wrap exit explicitly
Conflicts:
avprobe.c
cmdutils.c
ffmpeg.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffprobe.c')
-rw-r--r-- | ffprobe.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -159,7 +159,7 @@ static uint64_t *nb_streams_packets; static uint64_t *nb_streams_frames; static int *selected_streams; -static void exit_program(void) +static void ffprobe_cleanup(int ret) { int i; for (i = 0; i < FF_ARRAY_ELEMS(sections); i++) @@ -2123,7 +2123,7 @@ static void opt_input_file(void *optctx, const char *arg) av_log(NULL, AV_LOG_ERROR, "Argument '%s' provided as input filename, but '%s' was already specified.\n", arg, input_filename); - exit(1); + exit_program(1); } if (!strcmp(arg, "-")) arg = "pipe:"; @@ -2273,7 +2273,7 @@ int main(int argc, char **argv) int ret, i; av_log_set_flags(AV_LOG_SKIP_REPEATED); - atexit(exit_program); + register_exit(ffprobe_cleanup); options = real_options; parse_loglevel(argc, argv, options); |