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