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

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

Merge "AACWriter: support all possible channel counts"

parents 1eedcc01 6bd3bdf0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ status_t AACWriter::addSource(const sp<MediaSource> &source) {
    CHECK(!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AAC));
    CHECK(meta->findInt32(kKeyChannelCount, &mChannelCount));
    CHECK(meta->findInt32(kKeySampleRate, &mSampleRate));
    CHECK(mChannelCount >= 1 && mChannelCount <= 2);
    CHECK(mChannelCount >= 1 && mChannelCount <= 7);

    // Optionally, we want to check whether AACProfile is also set.
    if (meta->findInt32(kKeyAACProfile, &mAACProfile)) {