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

fix to VideoQuality.determineClosestSupportedResolution #88

Closed
wants to merge 2 commits into from
Closed

fix to VideoQuality.determineClosestSupportedResolution #88

wants to merge 2 commits into from

Conversation

SergioRAgostinho
Copy link

I was testing the library selecting some less common resolutions like 480 x 360 px (like the examples in the supported media formats) and a resolution of 480 x 800 px was being selected. This version respects the definition of "closest supported resolution" as it minimizes the l2 norm in both dimensions.

@SergioRAgostinho
Copy link
Author

Just noticed #50 addresses the same issue.
Also in the code I've submitted there's no real need to compute the sqrt (line 116).
Polluted the commit with stuff from #89.
Closing

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.

1 participant