From d2bc5696bbe979b5abe7736b6aebaa95df8a709e Mon Sep 17 00:00:00 2001 From: shweet Date: Sun, 11 Jan 2026 17:00:08 -0500 Subject: [PATCH] render: open process as "wb" not "w" --- src/render.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/render.cpp b/src/render.cpp index 8c51656..7634c2e 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -7,10 +7,10 @@ #include #include "log.h" +#include "path_.h" #include "process_.h" #include "sdl.h" #include "string_.h" -#include "path_.h" using namespace anm2ed::resource; using namespace anm2ed::util; @@ -85,8 +85,8 @@ namespace anm2ed } } - command = std::format("\"{0}\" -y -f rawvideo -pix_fmt rgba -s {1}x{2} -r {3} -i pipe:0", ffmpegPathString, - size.x, size.y, fps); + command = std::format("\"{0}\" -y -f rawvideo -pix_fmt rgba -s {1}x{2} -r {3} -i pipe:0", ffmpegPathString, size.x, + size.y, fps); if (!audioInputArguments.empty()) command += " " + audioInputArguments; @@ -119,7 +119,7 @@ namespace anm2ed logger.command(command); - Process process(command.c_str(), "w"); + Process process(command.c_str(), "wb"); if (!process.get()) {