You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
cmdutils: replace exit() by exit_program()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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)
|
|||||||
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)))
|
||||||
|
Reference in New Issue
Block a user