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 | f53263a7d580fb550dbc6c8d4f104119beb82ad7 (patch) | |
tree | f7af40078e70bec63ff05fb12884e86edc552b13 /media/libstagefright/SampleTable.cpp | |
parent | d8f4d4a919fb4fa6bbd405d03dc91f079c3c2e37 (diff) | |
download | frameworks_av-f53263a7d580fb550dbc6c8d4f104119beb82ad7.zip frameworks_av-f53263a7d580fb550dbc6c8d4f104119beb82ad7.tar.gz frameworks_av-f53263a7d580fb550dbc6c8d4f104119beb82ad7.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/libstagefright/SampleTable.cpp')
-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) { |