mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-03 08:15:34 +00:00
Fix unchecked return value in aml
This commit is contained in:
parent
66bc1b2904
commit
c985b9ea0d
@ -87,7 +87,7 @@ int aml_setup(int videoFormat, int width, int height, int redrawRate, void* cont
|
|||||||
struct utsname name;
|
struct utsname name;
|
||||||
uname(&name);
|
uname(&name);
|
||||||
int ret = sscanf(name.release, "%d.%d", &major, &minor);
|
int ret = sscanf(name.release, "%d.%d", &major, &minor);
|
||||||
if (!(major > 3 || (major == 3 && minor >= 14)) && width == 1920 && height == 1080)
|
if (ret == 2 && !(major > 3 || (major == 3 && minor >= 14)) && width == 1920 && height == 1080)
|
||||||
codecParam.am_sysinfo.param = (void*) UCODE_IP_ONLY_PARAM;
|
codecParam.am_sysinfo.param = (void*) UCODE_IP_ONLY_PARAM;
|
||||||
}
|
}
|
||||||
} else if (videoFormat & VIDEO_FORMAT_MASK_H265) {
|
} else if (videoFormat & VIDEO_FORMAT_MASK_H265) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user