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

Commit d0e4114c 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

am: 09615d44

Change-Id: I602490e2c0c41d86a2ca9c5c342920682c7ffe90
parents ffc608ee 09615d44
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;