OSDN Git Service

A2DP: AAC encoding counter errata
authorCheney Ni <cheneyni@google.com>
Thu, 13 Feb 2020 14:25:51 +0000 (22:25 +0800)
committerCheney Ni <cheneyni@google.com>
Tue, 10 Mar 2020 03:54:55 +0000 (11:54 +0800)
commitbae2582df32576f8e95aa78f039fcfdecc962086
tree1af749f5068ae625ebc595a9524a908f68116fa1
parent29e683d2161937a15c9a0bf14606b41290e10f7e
A2DP: AAC encoding counter errata

When the encoder interval is 23 milliseconds per tick for {44.1 kHz /
16 bits per sample / Stereo}, 3 microseconds shift every tick would
cause one AAC frame mismatched after 180 seconds. Here try to adjust the
timeline to increase the accuracy by following methods:

1. add the remainder back to the timeline when converting the time
   period to data size.
2. change the timestamp to be presented by values in 1/10 microseconds.

Bug: 149546181
Test: manually
Change-Id: I16742042ba64a9355c39c0248be9208567312a9f
stack/a2dp/a2dp_aac_encoder.cc