diff options
| author | 2010-11-19 18:24:48 -0800 | |
|---|---|---|
| committer | 2010-11-21 10:23:11 -0800 | |
| commit | 0950b4bd5b300708f352182de1e4a844ecff5e45 (patch) | |
| tree | 4689633ea00b04d11c2f4e5eb56f7b389697ea82 | |
| parent | 804043193a46a79a8616fd7696fb781edb80b519 (diff) | |
Fixed an issue in SampleTable where the table index was incorrectly wrapped around to -1
bug - 3198642
Change-Id: Ia0544172502fc771f48fce22d5c1db19ac3554bb
| -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 e922c7390d11..a9163fcc7ad2 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) { |