summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-08 11:10:02 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-08 11:12:32 +0200
commit5d3c3035b79891200f3167dc798fed7ebaab6eaf (patch)
tree368ba04c642bc563ce191eebbd3fa4e9ef9b1809 /cmdutils.c
parenteeddeb6579d8133871dc15f989ab8ffec5b5b396 (diff)
cmdutils: replace exit() by exit_program()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdutils.c b/cmdutils.c
index b292763aef..6eb093df18 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -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;
@@ -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)))