commit | 56b1b8bb1fec8690510e72a7042ebb06f3fbf5d1 | [log] [tgz] |
---|---|---|
author | James Dong <jdong@google.com> | Mon Nov 22 09:54:21 2010 -0800 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon Nov 22 09:54:21 2010 -0800 |
tree | 97ff3046a5ead3f8c98f3b8c7c2a8e58998c9207 | |
parent | d60083696588ceef5fe3636064b059b2f4d39216 [diff] | |
parent | 0950b4bd5b300708f352182de1e4a844ecff5e45 [diff] |
Merge "Fixed an issue in SampleTable where the table index was incorrectly wrapped around to -1"
diff --git a/media/libstagefright/SampleTable.cpp b/media/libstagefright/SampleTable.cpp index e922c73..a9163fc 100644 --- a/media/libstagefright/SampleTable.cpp +++ b/media/libstagefright/SampleTable.cpp
@@ -419,8 +419,10 @@ ++left; } + if (left > 0) { + --left; + } - --left; uint32_t x; if (mDataSource->readAt( mSyncSampleOffset + 8 + left * 4, &x, 4) != 4) {