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

Commit d20e1f93 authored by Wei Jia's avatar Wei Jia
Browse files

MPEG4Extractor: allow empty atom in iTune meta.

Test: can decode mp4 file with empty "name" atom.
Bug: 34718515

Change-Id: I0c4ee85ad9c8a8c31b6c58296f6eca4f62c30fef
parent 8eacd809
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2792,6 +2792,10 @@ status_t MPEG4Extractor::parseTrackHeader(
}

status_t MPEG4Extractor::parseITunesMetaData(off64_t offset, size_t size) {
    if (size == 0) {
        return OK;
    }

    if (size < 4 || size == SIZE_MAX) {
        return ERROR_MALFORMED;
    }