Skip to content

Commit

Permalink
cmdutils: replace exit() by exit_program()
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed Jul 8, 2013
1 parent eeddeb6 commit 5d3c303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmdutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ int opt_max_alloc(void *optctx, const char *opt, const char *arg)
max = strtol(arg, &tail, 10);
if (*tail) {
av_log(NULL, AV_LOG_FATAL, "Invalid max_alloc \"%s\".\n", arg);
exit(1);
exit_program(1);
}
av_max_alloc(max);
return 0;
Expand Down Expand Up @@ -1310,7 +1310,7 @@ static unsigned get_codecs_sorted(const AVCodecDescriptor ***rcodecs)
nb_codecs++;
if (!(codecs = av_calloc(nb_codecs, sizeof(*codecs)))) {
av_log(NULL, AV_LOG_ERROR, "Out of memory\n");
exit(1);
exit_program(1);
}
desc = NULL;
while ((desc = avcodec_descriptor_next(desc)))
Expand Down

0 comments on commit 5d3c303

Please sign in to comment.