diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-12-23 16:55:51 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-12-23 16:55:51 +0100 |
commit | b7b1129d65218b63045e1518b11bd1faa46f72af (patch) | |
tree | fda6f571c2969407f6f38001e93a54ecfcf85f4b /libAACenc | |
parent | 7caf4423145b5b2629502f8d227dc348bd232887 (diff) | |
download | fdk-aac-b7b1129d65218b63045e1518b11bd1faa46f72af.tar.gz fdk-aac-b7b1129d65218b63045e1518b11bd1faa46f72af.tar.bz2 fdk-aac-b7b1129d65218b63045e1518b11bd1faa46f72af.zip |
Fix bitenc for non-DAB
Diffstat (limited to 'libAACenc')
-rw-r--r-- | libAACenc/src/bitenc.cpp | 7 |
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, |