mirror of
				https://github.com/asticode/go-astiav.git
				synced 2025-10-31 19:43:10 +08:00 
			
		
		
		
	Expose pointer to underlying AVCodecContext (#95)
* feat: expose pointer to underlying C object * feat: add ut
This commit is contained in:
		| @@ -340,6 +340,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 ( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 l0rem1psum
					l0rem1psum