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

Commit e06ec66e authored by Lajos Molnar's avatar Lajos Molnar Committed by android-build-merger
Browse files

stagefright: MP4Extractor: allow 10% overhead on default sample size am: d7d6df84

am: 3206e347

Change-Id: Ib8c1ee37e1f47e9dad54628d2654aba12e152601
parents 2e3e9c6e 3206e347
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1721,6 +1721,9 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
                    // ratio. Use compression ratio of 1.
                    max_size = width * height * 3 / 2;
                }
                // HACK: allow 10% overhead
                // TODO: read sample size from traf atom for fragmented MPEG4.
                max_size += max_size / 10;
                mLastTrack->meta->setInt32(kKeyMaxInputSize, max_size);
            }