diff options
author | Matthew Hoops | 2011-04-12 16:23:34 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-04-12 16:23:34 -0400 |
commit | 499753cbb86eb6d1506a4cca287443a6768fb5a1 (patch) | |
tree | 51c22a0aa88288399b7425f692f64100e3ca679d | |
parent | 08b70fa1a737f325a0114632b3cef8cbf028fd3a (diff) | |
download | scummvm-rg350-499753cbb86eb6d1506a4cca287443a6768fb5a1.tar.gz scummvm-rg350-499753cbb86eb6d1506a4cca287443a6768fb5a1.tar.bz2 scummvm-rg350-499753cbb86eb6d1506a4cca287443a6768fb5a1.zip |
AUDIO: Don't end the AAC stream if we still have buffered samples
-rw-r--r-- | audio/decoders/aac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/decoders/aac.cpp b/audio/decoders/aac.cpp index 75f3a93cf6..fd9c4a075c 100644 --- a/audio/decoders/aac.cpp +++ b/audio/decoders/aac.cpp @@ -47,7 +47,7 @@ public: int readBuffer(int16 *buffer, const int numSamples); - bool endOfData() const { return _inBufferPos >= _inBufferSize; } + bool endOfData() const { return _inBufferPos >= _inBufferSize && !_remainingSamples; } bool isStereo() const { return _channels == 2; } int getRate() const { return _rate; } |