aboutsummaryrefslogtreecommitdiffstats
path: root/dabp-decode
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2026-01-22 09:53:38 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2026-01-22 09:53:38 +0100
commit97a78863727794265c7cea1c7029cd8f26b9e9b7 (patch)
treeeb8b49e1e987a2ec5db69b01509faf739780eabd /dabp-decode
parent1f112f14ff0bb3cb77f97c8d945bece9dd90fc4c (diff)
downloadmmbtools-aux-master.tar.gz
mmbtools-aux-master.tar.bz2
mmbtools-aux-master.zip
dabp-decode: fix num_aus and compile with debug infoHEADmaster
Diffstat (limited to 'dabp-decode')
-rw-r--r--dabp-decode/AACDecoder.cpp2
-rw-r--r--dabp-decode/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/dabp-decode/AACDecoder.cpp b/dabp-decode/AACDecoder.cpp
index 6166560..6e6708a 100644
--- a/dabp-decode/AACDecoder.cpp
+++ b/dabp-decode/AACDecoder.cpp
@@ -44,7 +44,7 @@ void AACDecoder::decode_frame(uint8_t *data, size_t len)
const int core_ch_config = aac_channel_mode ? 2 : 1;
const int extension_sr_index = dac_rate ? 3 : 5; // 48/32 kHz
- int au_start[6] = {};
+ int au_start[7] = {};
int num_aus = dac_rate ? (sbr_flag ? 3 : 6) : (sbr_flag ? 2 : 4);
au_start[0] = dac_rate ? (sbr_flag ? 6 : 11) : (sbr_flag ? 5 : 8);
diff --git a/dabp-decode/Makefile b/dabp-decode/Makefile
index 9c3ed31..8800c6b 100644
--- a/dabp-decode/Makefile
+++ b/dabp-decode/Makefile
@@ -6,4 +6,4 @@ SRCS := main.cpp \
wavfile.h wavfile.cpp
dabp-decoder: $(SRCS)
- g++ -Wall -std=c++17 -fsanitize=address -lfdk-aac -o dabp-decoder AACDecoder.cpp wavfile.cpp main.cpp
+ g++ -g -Wall -std=c++17 -fsanitize=address -lfdk-aac -o dabp-decoder AACDecoder.cpp wavfile.cpp main.cpp