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

Commit 06a2b724 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix EAC3 bsid parsing"

parents 229e087f 495d7b19
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3021,8 +3021,10 @@ status_t MPEG4Extractor::parseEAC3SpecificBox(off64_t offset) {
        }

        unsigned bsid = br.getBits(5);
        if (bsid < 8) {
            ALOGW("Incorrect bsid in EAC3 header. Possibly AC-3?");
        if (bsid == 9 || bsid == 10) {
            ALOGW("EAC3 stream (bsid=%d) may be silenced by the decoder", bsid);
        } else if (bsid > 16) {
            ALOGE("EAC3 stream (bsid=%d) is not compatible with ETSI TS 102 366 v1.4.1", bsid);
            delete[] chunk;
            return ERROR_MALFORMED;
        }