diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-03-03 18:03:17 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-03-03 18:03:17 +0100 |
commit | 618c88a6e3c594b8382b4c61710a968c6adcdf49 (patch) | |
tree | 314e99e56cc0715fdcbeed2189fc6056a5c6e4d0 /src/faad_decoder.cpp | |
parent | 4e196f337303304cc9cb15b5d7d345646486e68f (diff) | |
download | etisnoop-618c88a6e3c594b8382b4c61710a968c6adcdf49.tar.gz etisnoop-618c88a6e3c594b8382b4c61710a968c6adcdf49.tar.bz2 etisnoop-618c88a6e3c594b8382b4c61710a968c6adcdf49.zip |
Output YAML
Diffstat (limited to 'src/faad_decoder.cpp')
-rw-r--r-- | src/faad_decoder.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/faad_decoder.cpp b/src/faad_decoder.cpp index ced9921..280bf0d 100644 --- a/src/faad_decoder.cpp +++ b/src/faad_decoder.cpp @@ -109,7 +109,7 @@ bool FaadDecoder::decode(vector<vector<uint8_t> > aus) int core_sr_index = m_dac_rate ? (m_sbr_flag ? 6 : 3) : (m_sbr_flag ? 8 : 5); // 24/48/16/32 kHz int core_ch_config = get_aac_channel_configuration(); if(core_ch_config == -1) { - printf("Unrecognized mpeg surround config (ignored): %d\n", m_mpeg_surround_config); + fprintf(stderr, "Unrecognized mpeg surround config (ignored): %d\n", m_mpeg_surround_config); return false; } @@ -124,7 +124,7 @@ bool FaadDecoder::decode(vector<vector<uint8_t> > aus) long int init_result = NeAACDecInit2(m_faad_handle.decoder, asc, sizeof(asc), &samplerate, &channels); if(init_result != 0) { /* If some error initializing occured, skip the file */ - printf("Error initializing decoder library: %s\n", NeAACDecGetErrorMessage(-init_result)); + fprintf(stderr, "Error initializing decoder library: %s\n", NeAACDecGetErrorMessage(-init_result)); NeAACDecClose(m_faad_handle.decoder); return false; } @@ -140,15 +140,15 @@ bool FaadDecoder::decode(vector<vector<uint8_t> > aus) size_t samples = hInfo.samples; #if 0 - printf("bytes consumed %d\n", (int)(hInfo.bytesconsumed)); - printf("samplerate = %d, samples = %zu, channels = %d," + fprintf(stderr, "bytes consumed %d\n", (int)(hInfo.bytesconsumed)); + fprintf(stderr, "samplerate = %d, samples = %zu, channels = %d," " error = %d, sbr = %d\n", m_sample_rate, samples, m_channels, hInfo.error, hInfo.sbr); - printf("header = %d\n", hInfo.header_type); + fprintf(stderr, "header = %d\n", hInfo.header_type); #endif if (hInfo.error != 0) { - printf("FAAD Warning: %s\n", + fprintf(stderr, "FAAD Warning: %s\n", faacDecGetErrorMessage(hInfo.error)); return false; } @@ -161,7 +161,7 @@ bool FaadDecoder::decode(vector<vector<uint8_t> > aus) if (samples) { if (m_channels != 1 and m_channels != 2) { - printf("Cannot handle %d channels\n", m_channels); + fprintf(stderr, "Cannot handle %d channels\n", m_channels); } m_stats.peak_level_left = 0; |