Skip to content

Commit 943347c

Browse files
Bernhard RosenkraenzerBernhard Rosenkraenzer
authored andcommitted
libstagefright/matroska: Fix build with gcc 4.7
gcc 4.7 doesn't like the redefinition of i in the same scope Change-Id: Idf1b33af7041f0302f2f2562442a3e11ce9607d9 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
1 parent 0bd12c1 commit 943347c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

media/libstagefright/matroska/MatroskaExtractor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -768,12 +768,12 @@ void MatroskaExtractor::findThumbnails() {
768768
}
769769

770770
BlockIterator iter(this, info->mTrackNum);
771-
int32_t i = 0;
771+
int32_t j = 0;
772772
int64_t thumbnailTimeUs = 0;
773773
size_t maxBlockSize = 0;
774-
while (!iter.eos() && i < 20) {
774+
while (!iter.eos() && j < 20) {
775775
if (iter.block()->IsKey()) {
776-
++i;
776+
++j;
777777

778778
size_t blockSize = 0;
779779
for (int i = 0; i < iter.block()->GetFrameCount(); ++i) {

0 commit comments

Comments
 (0)