new packages: libfdk-aac and fdkaac (#7217)

This commit is contained in:
DLC01 2021-08-01 15:41:23 +05:30 committed by GitHub
parent 8f153ae3e3
commit 47a1b37659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 63 additions and 0 deletions

12
packages/fdkaac/build.sh Normal file
View File

@ -0,0 +1,12 @@
TERMUX_PKG_HOMEPAGE=https://github.com/nu774/fdkaac
TERMUX_PKG_DESCRIPTION="command line encoder frontend for libfdk-aac"
TERMUX_PKG_LICENSE="ZLIB"
TERMUX_PKG_MAINTAINER="DLC01"
TERMUX_PKG_VERSION=1.0.2
TERMUX_PKG_SRCURL=https://github.com/nu774/fdkaac/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=8a0b67792605fb8955d6be78a81e3a4029e9b7d0f594d8ed76e0fbcef90be0c8
TERMUX_PKG_DEPENDS="libfdk-aac"
termux_step_pre_configure() {
autoreconf -fi
}

View File

@ -0,0 +1,12 @@
TERMUX_PKG_HOMEPAGE=https://github.com/mstorsjo/fdk-aac
TERMUX_PKG_DESCRIPTION="Fraunhofer FDK AAC Codec Library"
TERMUX_PKG_LICENSE="custom"
TERMUX_PKG_MAINTAINER="DLC01"
TERMUX_PKG_VERSION=2.0.2
TERMUX_PKG_SRCURL=https://github.com/mstorsjo/fdk-aac/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=7812b4f0cf66acda0d0fe4302545339517e702af7674dd04e5fe22a5ade16a90
TERMUX_PKG_LICENSE_FILE=NOTICE
termux_step_pre_configure() {
./autogen.sh
}

View File

@ -0,0 +1,39 @@
--- fdk-aac-2.0.2/libSBRdec/src/lpp_tran.cpp 2021-04-28 18:04:15.000000000 +0530
+++ fdk-aac-2.0.2.mod/libSBRdec/src/lpp_tran.cpp 2021-07-02 12:26:00.717941802 +0530
@@ -118,10 +118,6 @@
\sa lppTransposer(), main_audio.cpp, sbr_scale.h, \ref documentationOverview
*/
-#ifdef __ANDROID__
-#include "log/log.h"
-#endif
-
#include "lpp_tran.h"
#include "sbr_ram.h"
@@ -336,12 +332,6 @@
}
}
}
-#ifdef __ANDROID__
- else {
- // Safetynet logging
- android_errorWriteLog(0x534e4554, "112160868");
- }
-#endif
/* init bwIndex for each patch */
FDKmemclear(bwIndex, sizeof(bwIndex));
@@ -934,12 +924,6 @@
FDKmemclear(&qmfBufferImag[i][targetStopBand], memSize);
}
}
-#ifdef __ANDROID__
- else {
- // Safetynet logging
- android_errorWriteLog(0x534e4554, "112160868");
- }
-#endif
/*
Calc common low band scale factor