Skip to content

Use int64 for sample-related FFProbeStream fields #4361

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

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

DingDongSoLong4
Copy link
Collaborator

This is a simple fix for an bug that came up in Discord, where scanning throws an ffprobe unmarshal error if you scan really long files on a 32-bit system. This is because duration_ts can sometimes, for really long files, be too large for a signed 32-bit integer, which is what the int type is an alias for on 32-bit systems.

I've thus just replaced the int with int64 on the DurationTs field to solve the issue. I've also made the same change on StartPts, just to be safe, since that is a value that is also measured in samples. Neither of these values are actually ever used anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants