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

Commit dfee45db authored by Shalaj Jain's avatar Shalaj Jain Committed by Ricardo Cerqueira
Browse files

Fixed issue with MPEG4 with 0 audio channels.

Removed check that numChannels != 0 in MPEG4Extractor.
The problem was that numChannels==0 valid, and implies that
the number of channels should come from the audio object
embedded in the MPEG4.

Change-Id: Ibe1b8f1d81ea661932ff1a1c02ed5b992068c15d
CRs-Fixed: 249523
parent 2cdc2add
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1856,10 +1856,6 @@ status_t MPEG4Extractor::updateAudioTrackInfoFromESDS_MPEG4Audio(
        numChannels = (csd[1] >> 3) & 15;
    }

    if (numChannels == 0) {
        return ERROR_UNSUPPORTED;
    }

    int32_t prevSampleRate;
    CHECK(mLastTrack->meta->findInt32(kKeySampleRate, &prevSampleRate));