asticode / goav

Golang bindings for FFmpeg libraries
https://github.com/asticode/goav
MIT License
41 stars 16 forks source link

fixed SwrFree (libswresample) segfault #6

Closed unxcepted closed 3 years ago

unxcepted commented 3 years ago

Hello, i found a bug causing SwrFree function from libswresample to segfault. Adding missing pointer fixes the issue.

Simplest code to reproduce the bug:

package main

import (
    "github.com/asticode/goav/swresample"
)

func main() {
    ctx := swresample.SwrAlloc()

    ctx.SwrFree()
}
asticode commented 3 years ago

Thanks for the PR.

I've created a v1.3.0 tag