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

Commit 1441fdc2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix media extractor abort"

parents d2e705a7 0147f95f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -5231,9 +5231,13 @@ status_t MPEG4Source::fragmentedRead(
    uint32_t cts = 0;
    bool isSyncSample = false;
    bool newBuffer = false;
    if (mBuffer == NULL) {
    if (mBuffer == NULL || mCurrentSampleIndex >= mCurrentSamples.size()) {
        newBuffer = true;

        if (mBuffer != NULL) {
            mBuffer->release();
            mBuffer = NULL;
        }
        if (mCurrentSampleIndex >= mCurrentSamples.size()) {
            // move to next fragment if there is one
            if (mNextMoofOffset <= mCurrentMoofOffset) {