diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-03-11 19:32:01 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-03-11 19:32:01 +0000 |
| commit | 11b7655bb103974d3a855d64dc0b6ec1b0df4ba1 (patch) | |
| tree | 09084901838b8d57f345a5379cf5915cde4a9921 /src/plugins/Input/aac/decoder_aac.cpp | |
| parent | 013ee07b55a3738b28b5d46324392d8498b50f2b (diff) | |
| download | qmmp-11b7655bb103974d3a855d64dc0b6ec1b0df4ba1.tar.gz qmmp-11b7655bb103974d3a855d64dc0b6ec1b0df4ba1.tar.bz2 qmmp-11b7655bb103974d3a855d64dc0b6ec1b0df4ba1.zip | |
reapplied previous patch
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1620 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/aac/decoder_aac.cpp')
| -rw-r--r-- | src/plugins/Input/aac/decoder_aac.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/Input/aac/decoder_aac.cpp b/src/plugins/Input/aac/decoder_aac.cpp index 1b5fe510a..f78a54576 100644 --- a/src/plugins/Input/aac/decoder_aac.cpp +++ b/src/plugins/Input/aac/decoder_aac.cpp @@ -68,7 +68,7 @@ bool DecoderAAC::initialize() if (!input()) { qWarning("DecoderAAC: cannot initialize. No input."); - return FALSE; + return false; } if (!m_input_buf) m_input_buf = new char[AAC_BUFFER_SIZE]; @@ -79,14 +79,14 @@ bool DecoderAAC::initialize() if (!input()->open(QIODevice::ReadOnly)) { qWarning("DecoderAAC: %s", qPrintable(input()->errorString ())); - return FALSE; + return false; } } AACFile aac_file(input()); if (!aac_file.isValid()) { qWarning("DecoderAAC: unsupported AAC file"); - return FALSE; + return false; } m_totalTime = aac_file.length() * 1000; m_bitrate = aac_file.bitrate(); @@ -132,12 +132,12 @@ bool DecoderAAC::initialize() if (res < 0) { qWarning("DecoderAAC: NeAACDecInit() failed"); - return FALSE; + return false; } if (!freq || !chan) { qWarning("DecoderAAC: invalid sound parameters"); - return FALSE; + return false; } memmove(m_input_buf, m_input_buf + res, m_input_at - res); @@ -152,7 +152,7 @@ qint64 DecoderAAC::read(char *audio, qint64 maxSize) NeAACDecFrameInfo frame_info; qint64 size = 0, to_read, read; void *out = 0; - bool eof = FALSE; + bool eof = false; while (size <= 0 && !eof) { |
