mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibMedia: Use u32 instead of uint to parse FFmpeg version numbers
This was breaking the build on Windows, apparently we don't have uint there.
This commit is contained in:
parent
e691f0e10f
commit
eaf1564d1b
Notes:
github-actions[bot]
2025-11-21 15:34:08 +00:00
Author: https://github.com/Zaggy1024
Commit: eaf1564d1b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6898
Reviewed-by: https://github.com/nico
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 6 additions and 6 deletions
|
|
@ -590,23 +590,23 @@ void Reader::fix_ffmpeg_webm_quirk()
|
|||
return;
|
||||
|
||||
auto is_affected_version = [&] {
|
||||
constexpr uint final_major_version = 59;
|
||||
constexpr uint final_minor_version = 30;
|
||||
constexpr uint final_micro_version = 100;
|
||||
constexpr u32 final_major_version = 59;
|
||||
constexpr u32 final_minor_version = 30;
|
||||
constexpr u32 final_micro_version = 100;
|
||||
|
||||
auto major_version = split[0].to_number<uint>();
|
||||
auto major_version = split[0].to_number<u32>();
|
||||
if (!major_version.has_value() || major_version.value() > final_major_version)
|
||||
return false;
|
||||
if (major_version.value() < final_major_version)
|
||||
return true;
|
||||
|
||||
auto minor_version = split[1].to_number<uint>();
|
||||
auto minor_version = split[1].to_number<u32>();
|
||||
if (!minor_version.has_value() || minor_version.value() > final_minor_version)
|
||||
return false;
|
||||
if (minor_version.value() < final_minor_version)
|
||||
return true;
|
||||
|
||||
auto micro_version = split[2].to_number<uint>();
|
||||
auto micro_version = split[2].to_number<u32>();
|
||||
return micro_version.has_value() && micro_version.value() <= final_micro_version;
|
||||
}();
|
||||
if (!is_affected_version)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue