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

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

Merge "Fix for 5754998 testPerformanceTransitionWithEffectOverlapping test failed."

parents f602a5f7 8d0dd8b4
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.