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

Use int64 for sample-related FFProbeStream fields #4361

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.

@WithoutPants WithoutPants added the bug Something isn't working label Dec 14, 2023
@WithoutPants WithoutPants added this to the Version 0.24.0 milestone Dec 14, 2023
@WithoutPants WithoutPants merged commit 26c3873 into stashapp:develop Dec 14, 2023
2 checks passed
@DingDongSoLong4 DingDongSoLong4 deleted the ffprobe-int64 branch December 14, 2023 12:06
halkeye pushed a commit to halkeye/stash that referenced this pull request Sep 1, 2024
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