diff options
| author | James Dong <jdong@google.com> | 2010-11-19 18:24:48 -0800 |
|---|---|---|
| committer | James Dong <jdong@google.com> | 2010-11-21 10:23:11 -0800 |
| commit | 0950b4bd5b300708f352182de1e4a844ecff5e45 (patch) | |
| tree | 4689633ea00b04d11c2f4e5eb56f7b389697ea82 /media | |
| parent | 804043193a46a79a8616fd7696fb781edb80b519 (diff) | |
| download | frameworks_base-0950b4bd5b300708f352182de1e4a844ecff5e45.zip frameworks_base-0950b4bd5b300708f352182de1e4a844ecff5e45.tar.gz frameworks_base-0950b4bd5b300708f352182de1e4a844ecff5e45.tar.bz2 | |
Fixed an issue in SampleTable where the table index was incorrectly wrapped around to -1
bug - 3198642
Change-Id: Ia0544172502fc771f48fce22d5c1db19ac3554bb
Diffstat (limited to 'media')
| -rw-r--r-- | media/libstagefright/SampleTable.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ status_t SampleTable::findSyncSampleNear( ++left; } + if (left > 0) { + --left; + } - --left; uint32_t x; if (mDataSource->readAt( mSyncSampleOffset + 8 + left * 4, &x, 4) != 4) { |
