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: set default color range for VideoReformatter.format() #1458

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

elxy
Copy link
Contributor

@elxy elxy commented Jul 16, 2024

The behavior of the VideoReformatter.format() is inconsistent with the documentation. According to the documentation, when color_range is None, it should use the color_range of the frame. However, in the function implementation, the default is set to 0.

@elxy elxy force-pushed the fix/default_color_range branch from 64e5e14 to 609f36e Compare July 16, 2024 11:29
@WyattBlue
Copy link
Member

This reverts the fix to #1378
Why don't we change the documentation instead?

ernestcao added 2 commits July 17, 2024 10:07
@elxy elxy force-pushed the fix/default_color_range branch from 609f36e to 87a5007 Compare July 17, 2024 02:24
@elxy
Copy link
Contributor Author

elxy commented Jul 17, 2024

This reverts the fix to #1378 Why don't we change the documentation instead?

Thanks for the reminder. The description of parameters has been updated to match the implementation.

@WyattBlue WyattBlue merged commit 4edb00f into PyAV-Org:main Jul 17, 2024
7 checks passed
@elxy elxy deleted the fix/default_color_range branch July 17, 2024 03:52
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.

2 participants