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.
pull/388/head
Anton Khirnov 3 years ago
parent 9fc64574e1
commit 33f5cacb1d
  1. 2
      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;

Loading…
Cancel
Save