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