1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

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.
This commit is contained in:
Anton Khirnov
2022-04-01 10:29:23 +02:00
parent 9fc64574e1
commit 33f5cacb1d

View File

@@ -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;