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

HALTVSettings - Improper pic_modes_t assignment in GetTVSupportedPic… #5893

Closed
wants to merge 7 commits into from

Conversation

slkanthi
Copy link

…tureModes

As per the current tvsettings.h interface, the prototype for the GetTVSupportedPictureModes function is:

tvError_t GetTVSupportedPictureModes(pic_modes_t *pictureModes[], unsigned short *count);

In the tvsettings implementation, the parameter pic_modes_t *pictureModes[] is declared as an array of pointers to pic_modes_t, but it is being assigned a pointer to an array of structures, which is incorrect.

*pictureModes = availableModes;

This assignment sets only the 0th index of the pictureModes array to point to the entire array of structures, whereas the expected behavior is for each index in pictureModes[] to point to individual structures in the pic_modes array:

pictureModes[index] = &pic_modes[index];

The pictureModes[] parameter should thus be populated with pointers to individual pic_modes_t structures, not with a single pointer to the entire array.

@CLAassistant
Copy link

CLAassistant commented Nov 28, 2024

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ slkanthi
❌ skk451


skk451 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@slkanthi slkanthi closed this Jan 7, 2025
@slkanthi slkanthi deleted the dev/L1_picmodeTest branch January 7, 2025 13:34
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