diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-04-01 10:29:23 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-07-23 11:53:19 +0200 |
commit | 33f5cacb1d776028ab7dfb3e19969f8fe2439f4f (patch) | |
tree | e84d49f89f2ccc781a9eb99b988b272c88816108 | |
parent | 9fc64574e1c1fb9618ef89fa0148238d6482b8c6 (diff) | |
download | ffmpeg-33f5cacb1d776028ab7dfb3e19969f8fe2439f4f.tar.gz |
fftools/ffmpeg_mux: do not call exit_program() in print_sdp()
Return an error instead, as is already done in other places in this
function.
-rw-r--r-- | fftools/ffmpeg_mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c index cf24ae7700..2abadd3f9b 100644 --- a/fftools/ffmpeg_mux.c +++ b/fftools/ffmpeg_mux.c @@ -270,7 +270,7 @@ static int print_sdp(void) avc = av_malloc_array(nb_output_files, sizeof(*avc)); if (!avc) - exit_program(1); + return AVERROR(ENOMEM); for (i = 0, j = 0; i < nb_output_files; i++) { if (!strcmp(output_files[i]->format->name, "rtp")) { avc[j] = output_files[i]->mux->fc; |