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

Commit f15784a5 authored by Hong Teng's avatar Hong Teng Committed by Android (Google) Code Review
Browse files

Merge "Fix for 5754998 testPerformanceTransitionWithEffectOverlapping test failed."

parents 279f8721 a76f6262
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -632,6 +632,13 @@ status_t SampleTable::findSyncSampleNear(
            break;
        }
    }
    if (left == mNumSyncSamples) {
        if (flags == kFlagAfter) {
            LOGE("tried to find a sync frame after the last one: %d", left);
            return ERROR_OUT_OF_RANGE;
        }
        left = left - 1;
    }

    // Now ssi[left] is the sync sample index just before (or at)
    // start_sample_index.