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

Commit 09615d44 authored by James O'Leary's avatar James O'Leary Committed by android-build-merger
Browse files

Merge "Fix Opus encoder being set to CBR" into qt-dev

am: d609aa15

Change-Id: If457ed7604890acac3eacfc99d8a21bc200c4bb2
parents 33595116 d609aa15
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -194,12 +194,12 @@ c2_status_t C2SoftOpusEnc::configureEncoder() {
        return C2_BAD_VALUE;
    }

    // Unconstrained VBR
    if (opus_multistream_encoder_ctl(mEncoder, OPUS_SET_VBR(0) != OPUS_OK)) {
    // Constrained VBR
    if (opus_multistream_encoder_ctl(mEncoder, OPUS_SET_VBR(1) != OPUS_OK)) {
        ALOGE("failed to set vbr type");
        return C2_BAD_VALUE;
    }
    if (opus_multistream_encoder_ctl(mEncoder, OPUS_SET_VBR_CONSTRAINT(0) !=
    if (opus_multistream_encoder_ctl(mEncoder, OPUS_SET_VBR_CONSTRAINT(1) !=
            OPUS_OK)) {
        ALOGE("failed to set vbr constraint");
        return C2_BAD_VALUE;