From b46963cc7e82dcb8c6509139f9176458db7c9d91 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 11 Mar 2015 21:27:12 +0100 Subject: Fix -V option --- libAACenc/src/bitenc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libAACenc/src/bitenc.cpp') 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; } -- cgit v1.2.3