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

use correct colorspace in avcodec #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brian-armstrong-discord
Copy link
Contributor

No description provided.

Copy link

@mikepavone mikepavone left a comment

Choose a reason for hiding this comment

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

One minor comment, but looks good to me. I don't have much experience poking around in ffmpeg, but the change seems straightforward enough

@@ -300,6 +300,9 @@ static int avcodec_decoder_copy_frame(const avcodec_decoder d, opencv_mat mat, A
NULL,
NULL,
NULL);
const int *src_coeffs = sws_getCoefficients(frame->colorspace);
const int *dst_coeffs = sws_getCoefficients(0);

Choose a reason for hiding this comment

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

I wonder if it would make more sense to specify SWS_CS_ITU709 (which evals to 1) here rather than 0 (which has no #define but appears to use the same coefficients as SWS_CS_ITU709).

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