PR #21136 opened by Martin Storsjö (mstorsjo) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21136 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21136.patch
Set stdout to binary mode, to avoid platform specific differences in the output that is hashed. From 3a21bec3f10c835adef2f834fe0833816e2e7392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <[email protected]> Date: Mon, 8 Dec 2025 22:35:33 +0200 Subject: [PATCH] swscale/tests: Fix fate-sws-ops-list on Windows Set stdout to binary mode, to avoid platform specific differences in the output that is hashed. --- libswscale/tests/sws_ops.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libswscale/tests/sws_ops.c b/libswscale/tests/sws_ops.c index 8bb44d634d..6d99445ae0 100644 --- a/libswscale/tests/sws_ops.c +++ b/libswscale/tests/sws_ops.c @@ -22,6 +22,11 @@ #include "libswscale/ops.h" #include "libswscale/format.h" +#ifdef _WIN32 +#include <io.h> +#include <fcntl.h> +#endif + static int run_test(SwsContext *const ctx, AVFrame *frame, const AVPixFmtDescriptor *const src_desc, const AVPixFmtDescriptor *const dst_desc) @@ -73,6 +78,10 @@ int main(int argc, char **argv) { int ret = 1; +#ifdef _WIN32 + setmode(fileno(stdout),O_BINARY); +#endif + SwsContext *ctx = sws_alloc_context(); AVFrame *frame = av_frame_alloc(); if (!ctx || !frame) -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
