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

Commit 210efd48 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Don't crash if no timescale was given

b/9175577

Change-Id: Ie159a9c9b42e6c8d9366d0ef6a607234af569e36
parent 4d2dd557
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -921,6 +921,8 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
            if (entry_count != 1) {
                // we only support a single entry at the moment, for gapless playback
                ALOGW("ignoring edit list with %d entries", entry_count);
            } else if (mLastTrack->timescale == 0) {
                ALOGW("ignoring edit list because timescale is 0");
            } else {
                off64_t entriesoffset = data_offset + 8;
                uint64_t segment_duration;