summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2013-04-01 17:31:15 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-01 17:31:15 +0000
commitd49e54289654ab7d7bda03f019ca4421fe303b05 (patch)
treed434446b2507c779610a7ad6f4119e5b92306307
parent2f711486c2b35610fb8e114968263e6660cdb683 (diff)
parent7268396ee607804570d3ae5927d672894aa708b1 (diff)
downloadframeworks_av-d49e54289654ab7d7bda03f019ca4421fe303b05.zip
frameworks_av-d49e54289654ab7d7bda03f019ca4421fe303b05.tar.gz
frameworks_av-d49e54289654ab7d7bda03f019ca4421fe303b05.tar.bz2
Merge "stagefright: matroska: don't crash on parsing error" into jb-mr2-dev
-rw-r--r--media/libstagefright/matroska/MatroskaExtractor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/matroska/MatroskaExtractor.cpp b/media/libstagefright/matroska/MatroskaExtractor.cpp
index 7fc7037..b304749 100644
--- a/media/libstagefright/matroska/MatroskaExtractor.cpp
+++ b/media/libstagefright/matroska/MatroskaExtractor.cpp
@@ -263,8 +263,8 @@ void BlockIterator::advance_l() {
mCluster, nextCluster, pos, len);
ALOGV("ParseNext returned %ld", res);
- if (res > 0) {
- // EOF
+ if (res != 0) {
+ // EOF or error
mCluster = NULL;
break;