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

Commit 82361949 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6362707 from 687d14d2 to qt-qpr3-release

Change-Id: I8b0ec1b37f2dcd77469304694806ffec81190980
parents aee4f443 687d14d2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1060,6 +1060,8 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
                    // drop it now to reduce our footprint
                    free(mLastTrack->mTx3gBuffer);
                    mLastTrack->mTx3gBuffer = NULL;
                    mLastTrack->mTx3gFilled = 0;
                    mLastTrack->mTx3gSize = 0;
                }

            } else if (chunk_type == FOURCC("moov")) {
@@ -2621,6 +2623,10 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
            // if those apps are compensating for it, we'd break them with such a change
            //

            if (mLastTrack->mTx3gBuffer == NULL) {
                mLastTrack->mTx3gSize = 0;
                mLastTrack->mTx3gFilled = 0;
            }
            if (mLastTrack->mTx3gSize - mLastTrack->mTx3gFilled < chunk_size) {
                size_t growth = kTx3gGrowth;
                if (growth < chunk_size) {