diff --git a/Sources/SwiftFFmpeg/AVIO.swift b/Sources/SwiftFFmpeg/AVIO.swift index e8bd846..41840a7 100644 --- a/Sources/SwiftFFmpeg/AVIO.swift +++ b/Sources/SwiftFFmpeg/AVIO.swift @@ -19,7 +19,7 @@ typealias CAVIOContext = CFFmpeg.AVIOContext public typealias AVIOReadHandler = (UnsafeMutableRawPointer?, UnsafeMutablePointer?, Int) -> Int -public typealias AVIOWriteHandler = (UnsafeMutableRawPointer?, UnsafeMutablePointer?, Int) -> +public typealias AVIOWriteHandler = (UnsafeMutableRawPointer?, UnsafePointer?, Int) -> Int public typealias AVIOSeekHandler = (UnsafeMutableRawPointer?, Int64, Int) -> Int64 @@ -76,7 +76,7 @@ public final class AVIOContext { } } var write: - (@convention(c) (UnsafeMutableRawPointer?, UnsafeMutablePointer?, Int32) -> Int32)? + (@convention(c) (UnsafeMutableRawPointer?, UnsafePointer?, Int32) -> Int32)? if writeHandler != nil { write = { opaque, buffer, size -> Int32 in let value = Unmanaged.fromOpaque(opaque!).takeUnretainedValue().value