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

Commit e38698f3 authored by Ram Mohan M's avatar Ram Mohan M
Browse files

c2SoftAacEnc: fix output timestamps for partial inputs

In scenarios where enqueued input is not an integral multiple of aac
packet size, the encoder consumes the input and returns output for all
samples except for the (input modulus aac_packet_size). These samples
are buffered inside the library and waited till the next enqueue call is
made or eos is signalled. In these cases, the output timestamp should
consider the already batched samples in its computations. This is not
managed correctly and this is now fixed.

Bug: 401377715
Test: atest MctsMediaV2TestCases:AudioEncoderTest
Test: atest MctsMediaV2TestCases:CodecEncoderTest
Test: atest MctsMediaEncoderTestCases:EncoderTest
Test: atest MctsMediaV2TestCases:CodecEncoderBlockModelTest
Test: atest MctsMediaV2TestCases:CodecEncoderMultiAccessUnitTest
Test: atest MctsMediaV2TestCases:CodecEncoderBlockModelMultiAccessUnitTest
Test: atest VtsHalMediaC2V1_0TargetAudioEncTest
Flag: EXEMPT bugfix

Change-Id: Iac418cacb1064a2e900f7e11909db28e93fb7f66
parent e5b9f506
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