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

Mp4 max buffer size #175

Merged
merged 2 commits into from
Feb 8, 2019

Conversation

alex-enchi
Copy link
Contributor

@alex-enchi alex-enchi commented Jan 15, 2019

Updated logic to actually match the comment about how it should work.
Implementation with max might set max buffer size values higher than in php config and it'll throw PHP Fatal error: Allowed memory size of x bytes exhausted error.
This pull request fixes the issue.

Changed max to min when calculating $atom_data_read_buffer_size, to avoid situation when  option_fread_buffer_size * 1024 is bigger than php memory limit.
@JamesHeinrich JamesHeinrich merged commit d8c7558 into JamesHeinrich:master Feb 8, 2019
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.

None yet

2 participants