[FFmpeg-cvslog] fftools/ffmpeg_mux: do not call exit_program() in print_sdp()

Anton Khirnov git at videolan.org
Sat Jul 23 13:07:59 EEST 2022


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Apr  1 10:29:23 2022 +0200| [33f5cacb1d776028ab7dfb3e19969f8fe2439f4f] | committer: Anton Khirnov

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=33f5cacb1d776028ab7dfb3e19969f8fe2439f4f
---

 fftools/ffmpeg_mux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list