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

Commit 9f917ec3 authored by Santhosh Behara's avatar Santhosh Behara Committed by Steve Kondik
Browse files

libstagefright: Set the maximums AAC framesize

The maximum AAC frame size is made equal to 8k*4
to handle multiple AAC frames in single buffer.

CRs-Fixed: 505248

Change-Id: I7c7e07620e2da8e1efe3914ebf73832f2f885ec9
parent 6b41197a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -439,6 +439,7 @@ sp<ABuffer> ElementaryStreamQueue::dequeueAccessUnitAAC() {
            mFormat = MakeAACCodecSpecificData(
                    profile, sampling_freq_index, channel_configuration);

            mFormat->setInt32(kKeyMaxInputSize, (8192 * 4)); // setting max aac input size
            mFormat->setInt32(kKeyIsADTS, true);

            int32_t sampleRate;