From decfcba9dd5059af55821ff41c93c9ffdd2062f4 Mon Sep 17 00:00:00 2001 From: Kartatz <105828205+Kartatz@users.noreply.github.com> Date: Fri, 14 Jun 2024 23:18:34 -0300 Subject: [PATCH] Update to GCC 14.1.0 --- src/ffmpegc_muxer.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ffmpegc_muxer.c b/src/ffmpegc_muxer.c index fab657e..471f2c6 100644 --- a/src/ffmpegc_muxer.c +++ b/src/ffmpegc_muxer.c @@ -9,7 +9,6 @@ static const char* const FFMPEG_DEFAULT_INPUT_FLAGS[] = { "-y", "-nostdin", "-nostats", - "-allowed_extensions", "bin", "-loglevel", "error" }; @@ -46,7 +45,7 @@ int ffmpegc_mux_streams(char* const* const sources, const char* const destinatio } argc += 1; /* */ - argc += index * 2; /* -i */ + argc += index * 4; /* -i */ argc += 1; /* */ executable = find_exe("ffmpeg"); @@ -77,6 +76,9 @@ int ffmpegc_mux_streams(char* const* const sources, const char* const destinatio break; } + argv[argvpos++] = "-allowed_extensions"; + argv[argvpos++] = "bin"; + argv[argvpos++] = "-i"; argv[argvpos++] = (char*) item; } @@ -109,7 +111,6 @@ int ffmpegc_mux_streams(char* const* const sources, const char* const destinatio strcat(command, arg); strcat(command, " "); } - puts(command); if (execute_shell_command(command) != 0) { err = M3U8ERR_FFMPEG_MUXING_FAILURE;