From 58bdd4198eb5b7029d515340307c754108ab8b11 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 11 Mar 2015 21:27:57 +0100 Subject: Revert useless changes This reverts commit b46963cc7e82dcb8c6509139f9176458db7c9d91. --- libAACenc/src/aacenc.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'libAACenc/src/aacenc.cpp') 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); -- cgit v1.2.3