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

Commit 27007e85 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "stagefright: avoid crash when histogram option is used" into main am:...

Merge "stagefright: avoid crash when histogram option is used" into main am: 2410aa74 am: 8a009cb5 am: e6d71cbf am: 8b764405 am: 23327e95 am: 67309dd7

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/2647899



Change-Id: I7ba8023f5ef5199d303e530c07baba5943395107
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 39af5b09 67309dd7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -106,6 +106,12 @@ static void displayDecodeHistogram(Vector<int64_t> *decodeTimesUs) {
    decodeTimesUs->sort(CompareIncreasing);

    size_t n = decodeTimesUs->size();

    if (n == 0) {
        printf("no decode histogram to display\n");
        return;
    }

    int64_t minUs = decodeTimesUs->itemAt(0);
    int64_t maxUs = decodeTimesUs->itemAt(n - 1);