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

Commit 04bb0485 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "VT: Check track's validity when dequeue access unit" into main

parents 7d865e72 1cdd52c0
Loading
Loading
Loading
Loading
+24 −23
Original line number Diff line number Diff line
@@ -432,8 +432,8 @@ void NuPlayer::RTPSource::onMessageReceived(const sp<AMessage> &msg) {

            // Implicitly assert on valid trackIndex here, which we ensure by
            // never removing tracks.
            if (trackIndex < mTracks.size()) {
                TrackInfo *info = &mTracks.editItemAt(trackIndex);

                sp<AnotherPacketSource> source = info->mSource;
                if (source != NULL) {
                    uint32_t rtpTime;
@@ -459,6 +459,7 @@ void NuPlayer::RTPSource::onMessageReceived(const sp<AMessage> &msg) {

                    source->queueAccessUnit(accessUnit);
                }
            }

            break;
        }