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

Commit d609aa15 authored by James O'Leary's avatar James O'Leary Committed by Android (Google) Code Review
Browse files

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

parents 4ed3e1bf ffd6cbc2
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;