Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4719fa8a authored by Bernhard Rosenkraenzer's avatar Bernhard Rosenkraenzer Committed by Jean-Baptiste Queru
Browse files

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: default avatarBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
parent 3c8889e8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -894,12 +894,12 @@ void MatroskaExtractor::findThumbnails() {
        }

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

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