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

Commit 9dcc312a authored by Robert Shih's avatar Robert Shih Committed by Android Git Automerger
Browse files

am 1391f933: MPEG4Extractor: null check in MPEG4Source::parseChunk

* commit '1391f933':
  MPEG4Extractor: null check in MPEG4Source::parseChunk
parents 562b98ec 1391f933
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -999,6 +999,9 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {

                int64_t duration;
                int32_t samplerate;
                if (!mLastTrack) {
                    return ERROR_MALFORMED;
                }
                if (mLastTrack->meta->findInt64(kKeyDuration, &duration) &&
                        mLastTrack->meta->findInt32(kKeySampleRate, &samplerate)) {