diff options
-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; } |