faad2: fix gcc2 build.

This commit is contained in:
Jerome Duval
2019-11-23 23:04:58 +01:00
parent c8d7bc62f1
commit e45bb6aed0
2 changed files with 26 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ library (libfaad) that may be used by other programs."
HOMEPAGE="https://www.audiocoding.com/"
COPYRIGHT="2003-2005 M. Bakker, Nero AG."
LICENSE="GNU GPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/knik0/faad2/archive/${portVersion//./_}.tar.gz"
CHECKSUM_SHA256="7fa33cff76abdda5a220ca5de0b2e05a77354f3b97f735193c2940224898aa9a"
SOURCE_DIR="faad2-${portVersion//./_}"

View File

@@ -1,4 +1,4 @@
From 3ca94abde60d8da2ab91b996970e79be54a0245e Mon Sep 17 00:00:00 2001
From 3d71c3fc14ae5cd28981c4a756a5c4a4c58db71e Mon Sep 17 00:00:00 2001
From: Robert Kausch <robert.kausch@freac.org>
Date: Tue, 4 Dec 2018 20:46:05 +0000
Subject: Patches for Haiku compatibility.
@@ -35,5 +35,28 @@ index 8ed57ae..aa9c745 100644
libfaad_la_SOURCES = bits.c cfft.c decoder.c drc.c \
drm_dec.c error.c filtbank.c \
--
2.24.0
2.23.0
From cb79ebf9a84b20630216ad5815d754d343e06df4 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 23 Nov 2019 23:02:50 +0100
Subject: gcc2 fix
diff --git a/libfaad/hcr.c b/libfaad/hcr.c
index 3cefe60..ea0d84e 100644
--- a/libfaad/hcr.c
+++ b/libfaad/hcr.c
@@ -225,7 +225,7 @@ uint8_t reordered_spectral_data(NeAACDecStruct *hDecoder, ic_stream *ics,
uint16_t sp_offset[8];
uint16_t g, i, sortloop, set, bitsread;
- /*uint16_t bitsleft, codewordsleft*/;
+ /*uint16_t bitsleft, codewordsleft;*/
uint8_t w_idx, sfb, this_CB, last_CB, this_sec_CB;
const uint16_t nshort = hDecoder->frameLength/8;
--
2.23.0