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/aacenc.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'libAACenc/src/aacenc.cpp') diff --git a/libAACenc/src/aacenc.cpp b/libAACenc/src/aacenc.cpp index 96668cc..72f08f1 100644 --- a/libAACenc/src/aacenc.cpp +++ b/libAACenc/src/aacenc.cpp @@ -792,8 +792,10 @@ AAC_ENCODER_ERROR FDKaacEnc_EncodeFrame( HANDLE_AAC_ENC hAacEnc, hAacEnc->config->syntaxFlags, hAacEnc->config->epConfig); - if (ErrorStatus != AAC_ENC_OK) + if (ErrorStatus != AAC_ENC_OK) { + printf("Fail 2.1\n"); return ErrorStatus; + } /*-------------------------------------------- */ @@ -934,8 +936,10 @@ AAC_ENCODER_ERROR FDKaacEnc_EncodeFrame( HANDLE_AAC_ENC hAacEnc, hAacEnc->config->syntaxFlags, hAacEnc->config->epConfig); - if (ErrorStatus != AAC_ENC_OK) + if (ErrorStatus != AAC_ENC_OK) { + printf("Fail 2.2\n"); return ErrorStatus; + } /*-------------------------------------------- */ /*-------------------------------------------- */ @@ -955,8 +959,10 @@ AAC_ENCODER_ERROR FDKaacEnc_EncodeFrame( HANDLE_AAC_ENC hAacEnc, hAacEnc->aot, hAacEnc->config->syntaxFlags, hAacEnc->config->epConfig); - if (ErrorStatus != AAC_ENC_OK) + if (ErrorStatus != AAC_ENC_OK) { + printf("Fail 2.3\n"); return ErrorStatus; + } /*-------------------------------------------- */ totalBits += qcOut->totalBits; @@ -988,8 +994,10 @@ AAC_ENCODER_ERROR FDKaacEnc_EncodeFrame( HANDLE_AAC_ENC hAacEnc, hAacEnc->config->syntaxFlags, hAacEnc->config->epConfig); - if (ErrorStatus != AAC_ENC_OK) + if (ErrorStatus != AAC_ENC_OK) { + printf("Fail 2.4\n"); return ErrorStatus; + } /* transportEnc_EndAccessUnit() is being called inside FDKaacEnc_WriteBitstream() */ transportEnc_GetFrame(hTpEnc, nOutBytes); -- cgit v1.2.3