Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Packet.SetPts #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix: Packet.SetPts #105

wants to merge 1 commit into from

Conversation

grassto
Copy link

@grassto grassto commented Jun 11, 2021

No description provided.

@601630051
Copy link

func AvIOOpen(url string, flags int) (res *AvIOContext, err error) {
urlStr := C.CString(url)
defer C.free(unsafe.Pointer(urlStr))

err = avutil.ErrorFromCode(int(C.avio_open((**C.AVIOContext)(unsafe.Pointer(&res)), urlStr, C.int(flags))))

return

}

fix

func AvioOpen(s **AVIOContext, url string, flags int) int {
urlStr := C.CString(url)
defer C.free(unsafe.Pointer(urlStr))

return int(C.avio_open((**C.struct_AVIOContext)(unsafe.Pointer(s)), urlStr, C.int(flags)))

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants