From eaaa211e02967ef09b250ad64b57fd0fdb3fff39 Mon Sep 17 00:00:00 2001 From: radicaltray Date: Sun, 13 Sep 2026 01:08:58 +0700 Subject: [PATCH] fix swr typos --- av.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/av.zig b/av.zig index cdbe0cdb1c..a7511757ae 100644 --- a/av.zig +++ b/av.zig @@ -204,7 +204,7 @@ pub extern fn sws_scale(c: *sws.Context, srcSlice: [*]const [*]const u8, srcStri pub extern fn sws_scale_frame(c: *sws.Context, dst: *Frame, src: *const Frame) c_int; /// Prefer `swr.Context.alloc`. -pub extern fn swr_alloc() ?*sws.Context; +pub extern fn swr_alloc() ?*swr.Context; /// Prefer `swr.Context.init`. pub extern fn swr_init(swr_context: *swr.Context) c_int; /// Prefer `swr.Context.is_initialized`. @@ -212,7 +212,7 @@ pub extern fn swr_is_initialized(swr_context: *swr.Context) c_int; /// Prefer `swr.Context.alloc_set_opts` pub extern fn swr_alloc_set_opts2(swr_context: *?*swr.Context, out_ch_layout: *const ChannelLayout, out_sample_fmt: SampleFormat, out_sample_rate: c_int, in_ch_layout: *const ChannelLayout, in_sample_fmt: SampleFormat, in_sample_rate: c_int, log_offset: c_int, log_ctx: ?[*]u8) c_int; /// Prefer `swr.Context.free`. -pub extern fn swr_free(swsContext: *?*swr.Context) void; +pub extern fn swr_free(swr_context: *?*swr.Context) void; /// Prefer `swr.Context.close` pub extern fn swr_close(swr_context: *swr.Context) void; /// Prefer `swr.Context.convert`