aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-12-23 16:55:51 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-12-23 16:55:51 +0100
commitb7b1129d65218b63045e1518b11bd1faa46f72af (patch)
treefda6f571c2969407f6f38001e93a54ecfcf85f4b
parent7caf4423145b5b2629502f8d227dc348bd232887 (diff)
downloadODR-AudioEnc-b7b1129d65218b63045e1518b11bd1faa46f72af.tar.gz
ODR-AudioEnc-b7b1129d65218b63045e1518b11bd1faa46f72af.tar.bz2
ODR-AudioEnc-b7b1129d65218b63045e1518b11bd1faa46f72af.zip
Fix bitenc for non-DAB
-rw-r--r--libAACenc/src/bitenc.cpp7
1 files changed, 5 insertions, 2 deletions
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,