aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2011-04-12 16:23:34 -0400
committerMatthew Hoops2011-04-12 16:23:34 -0400
commit499753cbb86eb6d1506a4cca287443a6768fb5a1 (patch)
tree51c22a0aa88288399b7425f692f64100e3ca679d
parent08b70fa1a737f325a0114632b3cef8cbf028fd3a (diff)
downloadscummvm-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.cpp2
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; }