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

run encoding_mp4.go overflows uint64 #65

Closed
lidedongsn opened this issue Nov 1, 2017 · 3 comments · Fixed by #66
Closed

run encoding_mp4.go overflows uint64 #65

lidedongsn opened this issue Nov 1, 2017 · 3 comments · Fixed by #66

Comments

@lidedongsn
Copy link

go run encoding_mp4.go

# github.com/3d0c/gmf
cgo-gcc-prolog: In function ‘_cgo_2ed26a316b1d_Cfunc_avcodec_encode_audio2’:
cgo-gcc-prolog:197:2: warning: ‘avcodec_encode_audio2’ is deprecated (declared at /root/local/ffmpeg/include/libavcodec/avcodec.h:5440) [-Wdeprecated-declarations]
cgo-gcc-prolog: In function ‘_cgo_2ed26a316b1d_Cfunc_avcodec_encode_video2’:
cgo-gcc-prolog:218:2: warning: ‘avcodec_encode_video2’ is deprecated (declared at /root/local/ffmpeg/include/libavcodec/avcodec.h:5479) [-Wdeprecated-declarations]
# github.com/3d0c/gmf
cgo-gcc-prolog: In function ‘_cgo_2ed26a316b1d_Cfunc_avcodec_decode_audio4’:
cgo-gcc-prolog:87:2: warning: ‘avcodec_decode_audio4’ is deprecated (declared at /root/local/ffmpeg/include/libavcodec/avcodec.h:4915) [-Wdeprecated-declarations]
cgo-gcc-prolog: In function ‘_cgo_2ed26a316b1d_Cfunc_avcodec_decode_video2’:
cgo-gcc-prolog:108:2: warning: ‘avcodec_decode_video2’ is deprecated (declared at /root/local/ffmpeg/include/libavcodec/avcodec.h:4964) [-Wdeprecated-declarations]
# github.com/3d0c/gmf
cgo-gcc-prolog: In function ‘_cgo_2ed26a316b1d_Cfunc_avcodec_copy_context’:
cgo-gcc-prolog:42:2: warning: ‘avcodec_copy_context’ is deprecated (declared at /root/local/ffmpeg/include/libavcodec/avcodec.h:4389) [-Wdeprecated-declarations]
# github.com/3d0c/gmf
/root/go/src/github.com/3d0c/gmf/codec.go:95: constant -9223372036854775808 overflows uint64
@mkrufky
Copy link
Contributor

mkrufky commented Nov 1, 2017

This is a bug in Golang 1.9.x ... Upgrade to Golang 1.9.2 or later for the fix.

@3d0c
Copy link
Owner

3d0c commented Nov 1, 2017

@mkrufky Thanks!

@mkrufky
Copy link
Contributor

mkrufky commented Nov 1, 2017

Correction: simply moving to Golang 1.9.2 isn't enough. This PR also needs to be merged: #66

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

Successfully merging a pull request may close this issue.

3 participants