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 int64 overflow with recent ffmpeg #63

Merged
merged 1 commit into from
Oct 25, 2017
Merged

Fix int64 overflow with recent ffmpeg #63

merged 1 commit into from
Oct 25, 2017

Conversation

fabian-z
Copy link
Contributor

@fabian-z fabian-z commented Sep 25, 2017

FFmpeg v3.3.4

gmf does not compile with the following error:
github.com/3d0c/gmf/codec.go:95: constant 9223372036854775808 overflows int64

In my version of ffmpeg this is defined as
./avutil.h:#define AV_NOPTS_VALUE ((int64_t)UINT64_C(0x8000000000000000))

Why the constant is defined as an uint64 literal which is cast to an (overflowing) int64 is beyond my comprehension, but since the code uses C.AV_NOPTS_VALUE the actual value produced here should not be important.

github.com/3d0c/gmf/codec.go:95:
constant 9223372036854775808 overflows int64
@3d0c 3d0c merged commit 7cd2d36 into 3d0c:master Oct 25, 2017
@mkrufky
Copy link
Contributor

mkrufky commented Nov 1, 2017

This "fix" is incorrect. This was not an issue with the latest ffmpeg --Rather, it is an issue with Golanf version 1.9.x ... It has been fixed in 1.9.2, and now this is a bug. It should be reverted.

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 this pull request may close these issues.

3 participants