From 4d9af9a81bb317585a1dce0620c1bb3468e5a0a6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 8 Mar 2021 17:25:57 +0100 Subject: test/run_{input,output,convert}: switch file descriptors to binary mode Fixes those programs on Windows. --- test/run_convert.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/run_convert.cxx') diff --git a/test/run_convert.cxx b/test/run_convert.cxx index 24d64c462..b7a687c03 100644 --- a/test/run_convert.cxx +++ b/test/run_convert.cxx @@ -106,6 +106,9 @@ static void RunConvert(PcmConvert &convert, size_t in_frame_size, FileDescriptor in_fd, FileDescriptor out_fd) { + in_fd.SetBinaryMode(); + out_fd.SetBinaryMode(); + StaticFifoBuffer buffer; while (true) { -- cgit v1.2.3