Skip to content

Commit b704287

Browse files
committed
Update to GCC 14.1.0
1 parent decfcba commit b704287

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/ffmpegc_muxer.c

+22-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ static const char* const FFMPEG_DEFAULT_OUTPUT_FLAGS[] = {
2020
"-fflags", "+bitexact+autobsf"
2121
};
2222

23+
static const char* const FFMPEG_INPUT_RANGE[] = {
24+
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13",
25+
"14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25",
26+
"26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37",
27+
"38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49",
28+
"50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61",
29+
"62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73",
30+
"74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85",
31+
"86", "87", "88", "89", "90", "91", "92", "93", "94", "95", "96", "97",
32+
"98", "99", "100"
33+
};
34+
2335
int ffmpegc_mux_streams(char* const* const sources, const char* const destination) {
2436

2537
int err = M3U8ERR_SUCCESS;
@@ -45,7 +57,7 @@ int ffmpegc_mux_streams(char* const* const sources, const char* const destinatio
4557
}
4658

4759
argc += 1; /* <command> */
48-
argc += index * 4; /* -i <input> */
60+
argc += index * 6; /* -allowed_extensions <extension> -i <input> -map <position>*/
4961
argc += 1; /* <output> */
5062

5163
executable = find_exe("ffmpeg");
@@ -83,6 +95,15 @@ int ffmpegc_mux_streams(char* const* const sources, const char* const destinatio
8395
argv[argvpos++] = (char*) item;
8496
}
8597

98+
argc = index;
99+
100+
for (index = 0; index < argc; index++) {
101+
const char* const position = FFMPEG_INPUT_RANGE[index];
102+
103+
argv[argvpos++] = "-map";
104+
argv[argvpos++] = (char*) position;
105+
}
106+
86107
for (index = 0; index < sizeof(FFMPEG_DEFAULT_OUTPUT_FLAGS) / sizeof(*FFMPEG_DEFAULT_OUTPUT_FLAGS); index++) {
87108
const char* const item = FFMPEG_DEFAULT_OUTPUT_FLAGS[index];
88109
argv[argvpos++] = (char*) item;

0 commit comments

Comments
 (0)