git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeddeb6
)
cmdutils: replace exit() by exit_program()
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 8 Jul 2013 09:10:02 +0000
(11:10 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 8 Jul 2013 09:12:32 +0000
(11:12 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
cmdutils.c
patch
|
blob
|
history
diff --git
a/cmdutils.c
b/cmdutils.c
index
b292763
..
6eb093d
100644
(file)
--- 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)))