Needed to change to zig 0.15.2 as well, didn't work with 0.16
This commit is contained in:
2025-10-27 23:14:25 +02:00
parent bd3a49dc5a
commit 308075678b
5 changed files with 111 additions and 57 deletions

View File

@@ -55,7 +55,18 @@ pub fn main() !void {
.FrameMetadataLength = 0,
};
const content = try std.fs.cwd().readFileAlloc("california-1080-uyvy.yuv", allocator, .unlimited);
// 0.15
const content = try std.fs.cwd().readFileAlloc(
allocator,
"california-1080-uyvy.yuv",
std.math.maxInt(usize),
);
// 0.16
// const content = try std.fs.cwd().readFileAlloc(
// "california-1080-uyvy.yuv",
// allocator,
// .unlimited,
// );
defer allocator.free(content);
const audio_samples = 800;