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

Commit fed97f38 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:...

stagefright: MP4Extractor: allow 10% overhead on default sample size am: a27317ab am: 268c4800 am: 87ce4202
am: d8c0785a

Change-Id: I8774555aa6c283a3f1f30c7c3667d9fc1dd0d7c7
parents ba9840c1 d8c0785a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1564,6 +1564,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);
            }