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

Commit 58713303 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

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

Bug: 148410627
Test: atest CtsMediaTestCases:MediaCodecBlockModelTest
Change-Id: I5242f730531f90ffd06456502059ebaf88a30490
parent 86d5a2a3
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;