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

encoder: pass VIDIOC_QUERYCAP as unsigned long #662

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

marcusfolkesson
Copy link
Contributor

VIDIOC_QUARYCAP is an unsigned long and should be passed as one.

Get rid of the following error:
encoder/encoder.cpp:32:37: error: overflow in conversion from 'long unsigned int' to 'int' changes value from '2154321408' to '-2140645888' [-Werror=overflow]
32 | int ret = ioctl(fd, VIDIOC_QUERYCAP, &caps);

VIDIOC_QUARYCAP is an unsigned long and should be passed as one.

Get rid of the following error:
encoder/encoder.cpp:32:37: error: overflow in conversion from 'long unsigned int' to 'int' changes value from '2154321408' to '-2140645888' [-Werror=overflow]
   32 |                 int ret = ioctl(fd, VIDIOC_QUERYCAP, &caps);

Signed-off-by: Marcus Folkesson <[email protected]>
@naushir naushir merged commit 17c454f into raspberrypi:main Mar 22, 2024
10 checks passed
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