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 data length on QOA checks instead of min size #91714

Merged
merged 1 commit into from
May 8, 2024

Conversation

DeeJayLSP
Copy link
Contributor

@DeeJayLSP DeeJayLSP commented May 8, 2024

Fixes #91712

Also potentially fixes an attempt of instantiating playback on a null data when set to QOA, throwing an error instead.

@DeeJayLSP
Copy link
Contributor Author

DeeJayLSP commented May 8, 2024

Interesting because qoa_decode_header has a check on itself. Maybe I should have used data_bytes on it instead of QOA_MIN_FILESIZE.

Force push done. Now whenever the size is invalid, channels and samples in desc will simply remain 0.

@DeeJayLSP DeeJayLSP changed the title Add size checks to QOA before decoding header Use data length on QOA checks instead of min size May 8, 2024
@akien-mga akien-mga merged commit cff016d into godotengine:master May 8, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@DeeJayLSP DeeJayLSP deleted the qoalen-fix branch May 8, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Executing AudioStreamWAV.get_length function after setting QOA format crashes Godot
2 participants