Skip to content
Commit af18a0c4 authored by Marius Vlad's avatar Marius Vlad
Browse files

screen-share: Avoid bit-shifting large values



Found while running with b_sanitize=undefined, which yields:

runtime error: shift exponent 909199186 is too large for 32-bit type 'int'

Converts the shm_formats to a boolean and checks for the correct pixel
format it directly, instead of trying to gather them all in an array and
then later on to do the check.

Signed-off-by: default avatarMarius Vlad <marius.vlad@collabora.com>
parent 08ee337e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment