You've already forked FFmpeg
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:
@@ -270,7 +270,7 @@ static int print_sdp(void)
|
|||||||
|
|
||||||
avc = av_malloc_array(nb_output_files, sizeof(*avc));
|
avc = av_malloc_array(nb_output_files, sizeof(*avc));
|
||||||
if (!avc)
|
if (!avc)
|
||||||
exit_program(1);
|
return AVERROR(ENOMEM);
|
||||||
for (i = 0, j = 0; i < nb_output_files; i++) {
|
for (i = 0, j = 0; i < nb_output_files; i++) {
|
||||||
if (!strcmp(output_files[i]->format->name, "rtp")) {
|
if (!strcmp(output_files[i]->format->name, "rtp")) {
|
||||||
avc[j] = output_files[i]->mux->fc;
|
avc[j] = output_files[i]->mux->fc;
|
||||||
|
Reference in New Issue
Block a user