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

Commit 865e970d authored by Arun Johnson's avatar Arun Johnson
Browse files

Fix crash during runtime arraymode change

 - Handle array mode changes for null c2Buffer.
   Since enabling flag can change buffers to arrayMode during runtime,
   reallocation of buffers may fails if the output comes with a null
   c2Buffer. This change will handle null c2Buffer reallocation using
   the information before the change or assume a default of LINEAR
   bufferType.

Bug: 418813731
Flag: android.media.codec.remove_arraymode_for_linear_output_buffers
Test: atest android.mediav2.cts.CodecEncoderMultiAccessUnitTest
      atest android.mediav2.cts.CodecDecoderTest
      atest android.mediav2.cts.CodecDecoderBlockModelMultiAccessUnitTest

Change-Id: I98db9504b0bb680d220cb4695a58458409525194
parent 370a47ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment