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