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

Commit e77e78df authored by Santhosh Behara's avatar Santhosh Behara Committed by Linux Build Service Account
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 0fb23299
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -632,6 +632,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;