From 8673e22e6cb79caa495f5943cf9baeb1946636b0 Mon Sep 17 00:00:00 2001 From: abdelhak Date: Wed, 24 Jun 2026 21:30:02 +0100 Subject: [PATCH] [FIX] Enable spaces in output name for ffmpeg in windows build --- src/ffmpeg_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ffmpeg_windows.c b/src/ffmpeg_windows.c index 53e4f9c..48a839e 100644 --- a/src/ffmpeg_windows.c +++ b/src/ffmpeg_windows.c @@ -64,7 +64,7 @@ FFMPEG *ffmpeg_start_rendering(const char *output_path, size_t width, size_t hei // TODO: use String_Builder in here // TODO: sanitize user input through sound_file_path char cmd_buffer[1024*2]; - snprintf(cmd_buffer, sizeof(cmd_buffer), "ffmpeg.exe -loglevel verbose -y -f rawvideo -pix_fmt rgba -s %dx%d -r %d -i - -i \"%s\" -c:v libx264 -vb 2500k -c:a aac -ab 200k -pix_fmt yuv420p %s", (int)width, (int)height, (int)fps, sound_file_path, output_path); + snprintf(cmd_buffer, sizeof(cmd_buffer), "ffmpeg.exe -loglevel verbose -y -f rawvideo -pix_fmt rgba -s %dx%d -r %d -i - -i \"%s\" -c:v libx264 -vb 2500k -c:a aac -ab 200k -pix_fmt yuv420p \"%s\"", (int)width, (int)height, (int)fps, sound_file_path, output_path); if (!CreateProcess(NULL, cmd_buffer, NULL, NULL, TRUE, 0, NULL, NULL, &siStartInfo, &piProcInfo)) { TraceLog(LOG_ERROR, "FFMPEG: Could not create child process. System Error Code: %d", GetLastError());