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

Commit 097d3a47 authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "mp4a box contains mp3 audio when the object type indication is 0x6b"

parents 0805d104 e883d317
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1596,6 +1596,14 @@ status_t MPEG4Extractor::updateAudioTrackInfoFromESDS_MPEG4Audio(
        return OK;
    }

    if (objectTypeIndication  == 0x6b) {
        // The media subtype is MP3 audio
        // Our software MP3 audio decoder may not be able to handle
        // packetized MP3 audio; for now, lets just return ERROR_UNSUPPORTED
        LOGE("MP3 track in MP4/3GPP file is not supported");
        return ERROR_UNSUPPORTED;
    }

    const uint8_t *csd;
    size_t csd_size;
    if (esds.getCodecSpecificInfo(