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

Commit 2410aa74 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 37acb044 7c2c708e
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);