libzen: Bump to 0.4.40

This commit is contained in:
Tee KOBAYASHI 2022-12-24 13:34:09 +09:00 committed by xtkoba
parent dab07aae13
commit cfa4ece023
2 changed files with 2 additions and 33 deletions

View File

@ -3,10 +3,9 @@ TERMUX_PKG_DESCRIPTION="ZenLib C++ utility library"
TERMUX_PKG_LICENSE="ZLIB"
TERMUX_PKG_LICENSE_FILE="../../../License.txt"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.4.39
TERMUX_PKG_REVISION=4
TERMUX_PKG_VERSION=0.4.40
TERMUX_PKG_SRCURL=https://mediaarea.net/download/source/libzen/${TERMUX_PKG_VERSION}/libzen_${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=bbf877062227828ccca63d36af04a16789f3f1013e0c99f6dfd908bf5f2dbe43
TERMUX_PKG_SHA256=54d492552d97004d5323a9f1bdf397af4ffe20ae633c5f7874d073a21388c805
TERMUX_PKG_DEPENDS="libandroid-support, libc++"
TERMUX_PKG_BUILD_DEPENDS="libandroid-glob"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-shared --enable-static"

View File

@ -1,30 +0,0 @@
From 47cee723de9616f1a4b406b17dbd1c75d7a4b0aa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Martinez?= <jerome@mediaarea.net>
Date: Tue, 13 Dec 2022 09:30:32 +0100
Subject: [PATCH] + BitStream_Fast: Resize()
---
Source/ZenLib/BitStream_Fast.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Source/ZenLib/BitStream_Fast.h b/Source/ZenLib/BitStream_Fast.h
index 8f579f3..bbf6f39 100644
--- a/Source/ZenLib/BitStream_Fast.h
+++ b/Source/ZenLib/BitStream_Fast.h
@@ -403,6 +403,13 @@ public:
return Buffer_Size%8;
}
+ inline void Resize(size_t Size_) //Size_ is the new count of remaining bits, must have the same alignment as Remain()
+ {
+ if (BufferUnderRun && Size_>Buffer_Size)
+ BufferUnderRun=false;
+ Buffer_Size=Size_;
+ }
+
private :
const int8u* Buffer;
size_t Buffer_Size;
--
2.38.0