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

Commit 3622d650 authored by Dan Austin's avatar Dan Austin Committed by Gerrit Code Review
Browse files

Merge "Benign integer overflow in PlaylistFetcher"

parents 5e925e02 33b2f14a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1628,7 +1628,8 @@ status_t PlaylistFetcher::extractAndQueueAccessUnitsFromTs(const sp<ABuffer> &bu

    if (mSegmentFirstPTS < 0ll) {
        // get the smallest first PTS from all streams present in this parser
        for (size_t i = mPacketSources.size(); i-- > 0;) {
        for (size_t i = mPacketSources.size(); i > 0;) {
            i--;
            const LiveSession::StreamType stream = mPacketSources.keyAt(i);
            if (stream == LiveSession::STREAMTYPE_SUBTITLES) {
                ALOGE("MPEG2 Transport streams do not contain subtitles.");