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

Commit e206ba07 authored by Wei Jia's avatar Wei Jia
Browse files

VBRISeeker: check mSegments.size() before using it.

Bug: 24426211
Change-Id: I325380be0714d531bdd7f488f6720f6b4578a678
parent d9b1b54b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ bool VBRISeeker::getDuration(int64_t *durationUs) {
}

bool VBRISeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) {
    if (mDurationUs < 0) {
    if (mDurationUs < 0 || mSegments.size() == 0) {
        return false;
    }