Commit 5d3c3035 authored by Michael Niedermayer's avatar Michael Niedermayer

cmdutils: replace exit() by exit_program()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent eeddeb65
...@@ -942,7 +942,7 @@ int opt_max_alloc(void *optctx, const char *opt, const char *arg) ...@@ -942,7 +942,7 @@ int opt_max_alloc(void *optctx, const char *opt, const char *arg)
max = strtol(arg, &tail, 10); max = strtol(arg, &tail, 10);
if (*tail) { if (*tail) {
av_log(NULL, AV_LOG_FATAL, "Invalid max_alloc \"%s\".\n", arg); av_log(NULL, AV_LOG_FATAL, "Invalid max_alloc \"%s\".\n", arg);
exit(1); exit_program(1);
} }
av_max_alloc(max); av_max_alloc(max);
return 0; return 0;
...@@ -1310,7 +1310,7 @@ static unsigned get_codecs_sorted(const AVCodecDescriptor ***rcodecs) ...@@ -1310,7 +1310,7 @@ static unsigned get_codecs_sorted(const AVCodecDescriptor ***rcodecs)
nb_codecs++; nb_codecs++;
if (!(codecs = av_calloc(nb_codecs, sizeof(*codecs)))) { if (!(codecs = av_calloc(nb_codecs, sizeof(*codecs)))) {
av_log(NULL, AV_LOG_ERROR, "Out of memory\n"); av_log(NULL, AV_LOG_ERROR, "Out of memory\n");
exit(1); exit_program(1);
} }
desc = NULL; desc = NULL;
while ((desc = avcodec_descriptor_next(desc))) while ((desc = avcodec_descriptor_next(desc)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment