summaryrefslogtreecommitdiffstats
path: root/media
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
commitf92300875743fca7e264c731a4e2fe9860cd1b10 (patch)
treeafa21e8c6711b4e4a34bfc0733fc71d0cd48260c /media
parent31215f2f341bae9d1f6db6368b2b1539e077d571 (diff)
parente467ef084b75b074d0081616080b54212a7024c8 (diff)
downloadframeworks_av-f92300875743fca7e264c731a4e2fe9860cd1b10.zip
frameworks_av-f92300875743fca7e264c731a4e2fe9860cd1b10.tar.gz
frameworks_av-f92300875743fca7e264c731a4e2fe9860cd1b10.tar.bz2
Merge "stagefright: matroska: don't crash on parsing error" into jb-mr2-dev
Diffstat (limited to 'media')
-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;