Beispiel #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)
}
Beispiel #2
0
func (this *CodecCtx) Free() {
	C.av_freep(unsafe.Pointer(&this.avCodecCtx))
}
Beispiel #3
0
func (this *CodecCtx) Release() {
	C.avcodec_close(this.avCodecCtx)
	C.av_freep(unsafe.Pointer(&this.avCodecCtx))
}
Beispiel #4
0
func (this *CodecCtx) CloseAndRelease() {
	this.Close()
	C.av_freep(unsafe.Pointer(&this.avCodecCtx))
}