mirror of https://github.com/microsoft/vcpkg.git
[avcpp] update to 3.0.1 (#50187)
This commit is contained in:
parent
c88c469b73
commit
ddcc6aeb9d
|
|
@ -1,31 +0,0 @@
|
|||
diff --git a/src/avutils.h b/src/avutils.h
|
||||
index ad8ca49..178e8d5 100644
|
||||
--- a/src/avutils.h
|
||||
+++ b/src/avutils.h
|
||||
@@ -510,10 +510,10 @@ T guessValue(const T& value, L list)
|
||||
return value;
|
||||
|
||||
T best = value;
|
||||
- T bestDistance = std::numeric_limits<T>::max();
|
||||
+ T bestDistance = (std::numeric_limits<T>::max)();
|
||||
|
||||
for (auto&& cur : list) {
|
||||
- auto const distance = std::max(cur, value) - std::min(cur, value);
|
||||
+ auto const distance = (std::max)(cur, value) - (std::min)(cur, value);
|
||||
if (distance < bestDistance) {
|
||||
bestDistance = distance;
|
||||
best = cur;
|
||||
@@ -565,11 +565,11 @@ T guessValue(const T& value, const L * list, C endListComparator)
|
||||
return value;
|
||||
|
||||
T best = value;
|
||||
- T bestDistance = std::numeric_limits<T>::max();
|
||||
+ T bestDistance = (std::numeric_limits<T>::max)();
|
||||
|
||||
for (const L * ptr = list; !endListComparator(*ptr); ++ptr) {
|
||||
auto const cur = *ptr;
|
||||
- auto const distance = std::max(cur, value) - std::min(cur, value);
|
||||
+ auto const distance = (std::max)(cur, value) - (std::min)(cur, value);
|
||||
if (distance < bestDistance) {
|
||||
bestDistance = distance;
|
||||
best = cur;
|
||||
|
|
@ -7,11 +7,10 @@ vcpkg_from_github(
|
|||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO h4tr3d/avcpp
|
||||
REF "v${VERSION}"
|
||||
SHA512 a0f4a6577ab9586cd9f8b5bc4ea4329a74857918099473fb366d57dc01d90be6653f81e0a4dd83cb1b35370c99bb34313f2d015d27fac26689feff97a97ff18b
|
||||
SHA512 f23102b3404aad89fe0bf1b7b19c72b09771c55c58043954999afbead7b2e68a4cd807073596c5d39b328fb17c69d23f9e64f86e8092a1b059c05bb6c2df82a7
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
0002-av_init_packet_deprecation.patch
|
||||
0003-fix-minmax.patch
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" AVCPP_ENABLE_STATIC)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "avcpp",
|
||||
"version": "2.90.1",
|
||||
"version": "3.0.1",
|
||||
"description": "Wrapper for the FFmpeg that simplify usage it from C++ projects.",
|
||||
"homepage": "https://github.com/h4tr3d/avcpp",
|
||||
"license": "LGPL-2.1-only OR BSD-3-Clause",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "4e0e7dc8ef987b1b2f13002eaf3cca4c9927d0a9",
|
||||
"version": "3.0.1",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "bfc7b9ad3262b1757d1c5e8acccae0d21e2224cc",
|
||||
"version": "2.90.1",
|
||||
|
|
|
|||
|
|
@ -429,7 +429,7 @@
|
|||
"port-version": 0
|
||||
},
|
||||
"avcpp": {
|
||||
"baseline": "2.90.1",
|
||||
"baseline": "3.0.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"avir": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue