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

Commit b07198a1 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android (Google) Code Review
Browse files

Merge "Don't crash if no timescale was given"

parents b3227fe3 210efd48
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;