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

Commit 398a33a9 authored by Lajos Molnar's avatar Lajos Molnar Committed by Jessica Wagantall
Browse files

stagefright: MPEG4Extractor: allow 'hdlr' box before first track

Bug: 21725583
Change-Id: I799c1967759c7e49fb50281a1708188450caac77
(cherry picked from commit cf75af8f)
(cherry picked from commit 302b546b)
Ticket: CYNGNOS-1189
parent 2f277859
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2151,8 +2151,10 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
            // shall be 'text'. We also want to support 'sbtl' handler type
            // for a practical reason as various MPEG4 containers use it.
            if (type == FOURCC('t', 'e', 'x', 't') || type == FOURCC('s', 'b', 't', 'l')) {
                if (mLastTrack != NULL) {
                    mLastTrack->meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_TEXT_3GPP);
                }
            }

            break;
        }