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

MP3: Use heap for big struct when setting data #96240

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

DeeJayLSP
Copy link
Contributor

@DeeJayLSP DeeJayLSP commented Aug 28, 2024

mp3dec_ex_t has a size of 16,064 bytes, not a good idea to declare it on stack.

I think this explains the purpose of this PR. Even if the chances of a problem happening are quite low, I believe it should be prevented.

@DeeJayLSP DeeJayLSP requested a review from a team as a code owner August 28, 2024 19:53
@AThousandShips AThousandShips added this to the 4.x milestone Aug 29, 2024
Copy link
Member

@reduz reduz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its very little space for the stack, so I dont really think it matters much, but always welcome change.

@akien-mga akien-mga modified the milestones: 4.x, 4.4 Aug 29, 2024
@akien-mga akien-mga merged commit 5418919 into godotengine:master Aug 30, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@DeeJayLSP DeeJayLSP deleted the mp3-data branch August 30, 2024 12:01
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.

4 participants