Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-02 21:43:01 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-10-02 21:48:54 +0400
commit032ba74ed29e0af77da04d2305b0470cb42b1955 (patch)
tree45127c399bf7846d057b07d35d02cf3f6a5f8675 /ffprobe.c
parentdd78e1090b4cae3fbaa71e266c4b6b2f82ea9b7c (diff)
parent7bda4ed780c23c4bd50cf9ccd91f235e67ab0eae (diff)
Merge remote-tracking branch 'qatar/master'
* qatar/master: ARM: fix Thumb PIC on Apple nut: add do {} while (0) to GET_V tiffenc: Check av_malloc() results. tiffenc: Simplify pixel format setup using AVPixFmtDescriptor. Use atexit() instead of defining a custom exit_program() interface. msvc: Fix detection of VFW & Avisynth required libs Conflicts: ffmpeg.c ffmpeg_opt.c ffplay.c ffprobe.c ffserver.c libavcodec/tiffenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 9e5cd04101..31d1a4430a 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -141,10 +141,9 @@ static const char unit_bit_per_second_str[] = "bit/s";
static uint64_t *nb_streams_packets;
static uint64_t *nb_streams_frames;
-void av_noreturn exit_program(int ret)
+static void exit_program()
{
av_dict_free(&fmt_entries_to_show);
- exit(ret);
}
struct unit_value {
@@ -2093,6 +2092,8 @@ int main(int argc, char **argv)
int ret;
av_log_set_flags(AV_LOG_SKIP_REPEATED);
+ atexit(exit_program);
+
options = real_options;
parse_loglevel(argc, argv, options);
av_register_all();