diff --git a/audio.go b/audio.go index 128d51e..ddca6a3 100644 --- a/audio.go +++ b/audio.go @@ -562,7 +562,7 @@ func freeFFCtx(self *ffctx) { } if ff.codecCtx != nil { C.avcodec_close(ff.codecCtx) - C.av_free(ff.codecCtx) + C.av_free(unsafe.Pointer(ff.codecCtx)) ff.codecCtx = nil } }