From fcef5e962de1a5834bfe19f4757586638a97f743 Mon Sep 17 00:00:00 2001 From: cat Date: Sat, 20 Jun 2026 21:07:30 +0300 Subject: [PATCH] video-compare: update to 20260502. --- .../patches/32bit-type-size-issue.patch | 23 +++++++++++++++++++ srcpkgs/video-compare/template | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/video-compare/patches/32bit-type-size-issue.patch diff --git a/srcpkgs/video-compare/patches/32bit-type-size-issue.patch b/srcpkgs/video-compare/patches/32bit-type-size-issue.patch new file mode 100644 index 00000000000000..029826dc5736e7 --- /dev/null +++ b/srcpkgs/video-compare/patches/32bit-type-size-issue.patch @@ -0,0 +1,23 @@ +In 32-bit the signature for std::min seem to fail. Since long unsigned int is 64 bits while size_t is 32 bits. +Remember kids cstdint is your friend. This problem could have been solved with using uint64_t :D + +--- a/video_compare.cpp ++++ b/video_compare.cpp +@@ -678,7 +678,7 @@ + if (!crop_request.clear_requested && !crop_request.valid) { + return false; + } +- const Side target_right = crop_request.apply_right ? Side::Right(std::min(crop_request.right_target_index, right_video_info_.empty() ? 0UL : (right_video_info_.size() - 1))) : active_right; ++ const Side target_right = crop_request.apply_right ? Side::Right(std::min(crop_request.right_target_index, static_cast(right_video_info_.empty() ? 0UL : (right_video_info_.size() - 1)))) : active_right; + const bool swap_left_right = display_->get_swap_left_right(); + const Side resolved_left_side = swap_left_right ? active_right : LEFT; + const Side resolved_right_side = swap_left_right ? LEFT : target_right; +--- a/display.cpp ++++ b/display.cpp +@@ -3668,5 +3668,5 @@ + } + + void Display::set_active_right_index(const size_t index) { +- active_right_index_ = std::min(index, num_right_videos_ > 0 ? num_right_videos_ - 1 : 0UL); ++ active_right_index_ = std::min(index, static_cast(num_right_videos_ > 0 ? num_right_videos_ - 1 : 0UL)); + } diff --git a/srcpkgs/video-compare/template b/srcpkgs/video-compare/template index 076080e33775a5..d6700215fbd560 100644 --- a/srcpkgs/video-compare/template +++ b/srcpkgs/video-compare/template @@ -1,6 +1,6 @@ # Template file for 'video-compare' pkgname=video-compare -version=20250420 +version=20260502 revision=1 build_style=gnu-makefile makedepends="ffmpeg6-devel SDL2-devel SDL2_ttf-devel" @@ -10,7 +10,7 @@ license="GPL-2.0-only" homepage="https://github.com/pixop/video-compare" changelog="https://github.com/pixop/video-compare/releases" distfiles="https://github.com/pixop/video-compare/archive/refs/tags/${version}.tar.gz" -checksum=cfb1de9608fa141defa44b62c10ff7a56ea668c87d6c2c102409bddcaa98cd83 +checksum=558e9a97e381929fa6c30ec46e5187cf4ceb3505dffe8c0da0a581a0d2b60202 CXXFLAGS="-std=c++14 -D__STDC_CONSTANT_MACROS"