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

Commit 1338afc5 authored by Karl McDowall's avatar Karl McDowall Committed by Steve Kondik
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.

CRs-Fixed: 249523

Change-Id: I77e838bd1c37dfc9798363dda04977c4ecfd224d
parent 1c824832
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1316,10 +1316,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));