From b7b1129d65218b63045e1518b11bd1faa46f72af Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 23 Dec 2014 16:55:51 +0100 Subject: Fix bitenc for non-DAB --- libAACenc/src/bitenc.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libAACenc/src') diff --git a/libAACenc/src/bitenc.cpp b/libAACenc/src/bitenc.cpp index 0823ef2..4552457 100644 --- a/libAACenc/src/bitenc.cpp +++ b/libAACenc/src/bitenc.cpp @@ -1462,8 +1462,11 @@ AAC_ENCODER_ERROR FDKaacEnc_WriteBitstream(HANDLE_TRANSPORTENC hTpEnc, /* Write global extension payload and fill data */ for (n = 0; (n < qcOut->nExtensions) && (n < (2+2)); n++) { - if ( (syntaxFlags & AC_DAB) && - (qcOut->extension[n].type != EXT_DATA_ELEMENT) ) { + if ( !(syntaxFlags & AC_DAB) || + ( (syntaxFlags & AC_DAB) && + (qcOut->extension[n].type != EXT_DATA_ELEMENT) + ) + ) { FDKaacEnc_writeExtensionData( hTpEnc, &qcOut->extension[n], 0, -- cgit v1.2.3