diff options
Diffstat (limited to 'media/libstagefright/codecs/aacenc/AACEncoder.cpp')
-rw-r--r-- | media/libstagefright/codecs/aacenc/AACEncoder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/aacenc/AACEncoder.cpp b/media/libstagefright/codecs/aacenc/AACEncoder.cpp index e8235c2..052c354 100644 --- a/media/libstagefright/codecs/aacenc/AACEncoder.cpp +++ b/media/libstagefright/codecs/aacenc/AACEncoder.cpp @@ -224,6 +224,7 @@ status_t AACEncoder::read( if (mInputBuffer == NULL) { if (mSource->read(&mInputBuffer, options) != OK) { if (mNumInputSamples == 0) { + buffer->release(); return ERROR_END_OF_STREAM; } memset(&mInputFrame[mNumInputSamples], |