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

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

Merge "CCodec: don't use array mode if in block model"

parents 265e0479 58713303
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1263,10 +1263,12 @@ status_t CCodecBufferChannel::start(
        }

        if (oStreamFormat.value == C2BufferData::LINEAR) {
            if (buffersBoundToCodec) {
                // WORKAROUND: if we're using early CSD workaround we convert to
                //             array mode, to appease apps assuming the output
                //             buffers to be of the same size.
                output->buffers = output->buffers->toArrayMode(numOutputSlots);
            }

            int32_t channelCount;
            int32_t sampleRate;