summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2011-08-31 14:17:18 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-31 14:17:18 -0700
commitf11b37bc9c92380cafadad7c8988f170687b8dfe (patch)
treef7a13b041ec50ecb7dfc50be4f850e6fb03660eb /media
parentaf6764da53c022768290e735bbcc3088bec333d8 (diff)
parente8eb2f4f0f8eff0313a27892ab8514223553d943 (diff)
downloadframeworks_av-f11b37bc9c92380cafadad7c8988f170687b8dfe.zip
frameworks_av-f11b37bc9c92380cafadad7c8988f170687b8dfe.tar.gz
frameworks_av-f11b37bc9c92380cafadad7c8988f170687b8dfe.tar.bz2
Merge "Fix a crash where the EOS was signalled but some output buffer were still pending."
Diffstat (limited to 'media')
-rwxr-xr-xmedia/libstagefright/OMXCodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 7f09319..d5b013d 100755
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -1990,7 +1990,7 @@ int64_t OMXCodec::retrieveDecodingTimeUs(bool isCodecSpecific) {
CHECK(mIsEncoder);
if (mDecodingTimeList.empty()) {
- CHECK(mNoMoreOutputData);
+ CHECK(mSignalledEOS || mNoMoreOutputData);
// No corresponding input frame available.
// This could happen when EOS is reached.
return 0;