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

Check that the gain map max is >= gain map min. #2580

Merged
merged 2 commits into from
Feb 11, 2025

Conversation

maryla-uc
Copy link
Collaborator

Fixes #2573

@maryla-uc maryla-uc requested a review from wantehchang January 20, 2025 16:28
@wantehchang
Copy link
Collaborator

Maryla: I am really sorry. I remember I reviewed this pull request but somehow got distracted and forgot to come back. I will review it tomorrow.

@maryla-uc
Copy link
Collaborator Author

No worries, I completely forgot about this PR as well...

Copy link
Collaborator

@wantehchang wantehchang left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@wantehchang wantehchang added this to the v1.2.0 milestone Feb 8, 2025
@maryla-uc maryla-uc merged commit c680741 into AOMediaCodec:main Feb 11, 2025
19 checks passed
[max_n, max_d](int32_t min_n) {
// For simplicity, use the same denominator for both fractions.
// This does not cover all possible fractions but makes it easy
// to guarantee that the first fraction is smaller.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Add "than or equal to the second one", or change "smaller" to "not bigger".

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.

Require that gainMap->gainMapMax[c] be greater than or equal to gainMap->gainMapMin[c]
2 participants