feat: return unsafe pointer instead of raw C struct (#54)

This commit is contained in:
l0rem1psum
2024-03-18 15:43:35 +08:00
committed by GitHub
parent 7543fa0443
commit 91fcb0b829
2 changed files with 4 additions and 3 deletions

View File

@@ -214,6 +214,6 @@ func (f *Frame) MoveRef(src *Frame) {
C.av_frame_move_ref(f.c, src.c)
}
func (f *Frame) UnsafeTypedPointer() *C.struct_AVFrame {
return f.c
func (f *Frame) UnsafePointer() unsafe.Pointer {
return unsafe.Pointer(f.c)
}