Ejemplo n.º 1
0
//Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer pointing to it to NULL.
func AvFreep(p unsafe.Pointer) {
	C.av_freep(p)
}
Ejemplo n.º 2
0
func (this *CodecCtx) Free() {
	C.av_freep(unsafe.Pointer(&this.avCodecCtx))
}
Ejemplo n.º 3
0
func (this *CodecCtx) Release() {
	C.avcodec_close(this.avCodecCtx)
	C.av_freep(unsafe.Pointer(&this.avCodecCtx))
}
Ejemplo n.º 4
0
func (this *CodecCtx) CloseAndRelease() {
	this.Close()
	C.av_freep(unsafe.Pointer(&this.avCodecCtx))
}