summaryrefslogtreecommitdiffstats
path: root/libAACenc/src/bitenc.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-11 21:27:12 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-11 21:27:12 +0100
commitb46963cc7e82dcb8c6509139f9176458db7c9d91 (patch)
treec5c73af834d5d069235f4e7fe0a1ab243f3c8331 /libAACenc/src/bitenc.cpp
parent58378f49c75b7c6e184c499082328761b468da68 (diff)
downloadfdk-aac-dabplus-b46963cc7e82dcb8c6509139f9176458db7c9d91.tar.gz
fdk-aac-dabplus-b46963cc7e82dcb8c6509139f9176458db7c9d91.tar.bz2
fdk-aac-dabplus-b46963cc7e82dcb8c6509139f9176458db7c9d91.zip
Fix -V option
Diffstat (limited to 'libAACenc/src/bitenc.cpp')
-rw-r--r--libAACenc/src/bitenc.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libAACenc/src/bitenc.cpp b/libAACenc/src/bitenc.cpp
index 4552457..fd2697e 100644
--- a/libAACenc/src/bitenc.cpp
+++ b/libAACenc/src/bitenc.cpp
@@ -1302,7 +1302,6 @@ AAC_ENCODER_ERROR FDKaacEnc_WriteBitstream(HANDLE_TRANSPORTENC hTpEnc,
frameBits = bitMarkUp = alignAnchor;
-
/* Write DSEs first in case of DAB */
for (n = 0; (n < qcOut->nExtensions) && (n < (2+2)); n++)
{
@@ -1343,6 +1342,7 @@ AAC_ENCODER_ERROR FDKaacEnc_WriteBitstream(HANDLE_TRANSPORTENC hTpEnc,
NULL,
0 )) )
{
+ printf("Fail 2.4.1\n");
return ErrorStatus;
}
@@ -1364,6 +1364,7 @@ AAC_ENCODER_ERROR FDKaacEnc_WriteBitstream(HANDLE_TRANSPORTENC hTpEnc,
/* In FDK, DSE signalling explicit done in elDSE. See channel_map.cpp */
default:
+ printf("Fail 2.4.2\n");
return AAC_ENC_INVALID_ELEMENTINFO_TYPE;
} /* switch */
@@ -1439,6 +1440,7 @@ AAC_ENCODER_ERROR FDKaacEnc_WriteBitstream(HANDLE_TRANSPORTENC hTpEnc,
/* Do byte alignment after AAC (+ MPS) payload.
Assure that MPS has been written as channel assigned extension payload! */
if (((FDKgetValidBits(hBs)-alignAnchor+(UINT)qcOut->totFillBits)&0x7)!=(UINT)qcOut->alignBits) {
+ printf("Fail 2.4.3\n");
return AAC_ENC_WRITTEN_BITS_ERROR;
}
FDKaacEnc_ByteAlignment(hBs, qcOut->alignBits);
@@ -1486,6 +1488,7 @@ AAC_ENCODER_ERROR FDKaacEnc_WriteBitstream(HANDLE_TRANSPORTENC hTpEnc,
if (doByteAlign) {
/* Assure byte alignment*/
if (((alignAnchor-FDKgetValidBits(hBs))&0x7)!=(UINT)qcOut->alignBits) {
+ printf("Fail 2.4.4, %d != %d\n", (alignAnchor-FDKgetValidBits(hBs))&0x7, (UINT)qcOut->alignBits );
return AAC_ENC_WRITTEN_BITS_ERROR;
}