diff --git a/codec_context.go b/codec_context.go index 5ea3044..3758d43 100644 --- a/codec_context.go +++ b/codec_context.go @@ -349,6 +349,10 @@ func (cc *CodecContext) SetExtraHardwareFrames(n int) { cc.c.extra_hw_frames = C.int(n) } +func (cc *CodecContext) UnsafePointer() unsafe.Pointer { + return unsafe.Pointer(cc.c) +} + type CodecContextPixelFormatCallback func(pfs []PixelFormat) PixelFormat var (