commit | 3dd7bd3440ef048fa0fcd9d86c42ac75038e9c11 | [log] [tgz] |
---|---|---|
author | Wonsik Kim <wonsik@google.com> | Fri Aug 09 10:35:55 2019 -0700 |
committer | Wonsik Kim <wonsik@google.com> | Fri Aug 09 15:58:18 2019 -0700 |
tree | 0b180b19ef5b7a96c7140b6a285d36563f9e16cd | |
parent | c48ed6678719f9ee318f1f32259126873502e0c0 [diff] [blame] |
aacenc: handle input size not aligned at sample boundary Bug: 136068046 Test: modified EncoderTest Change-Id: Ife09efcedf573d4327e8482e03dd82fcafdb5eb2
diff --git a/media/codec2/components/aac/C2SoftAacEnc.h b/media/codec2/components/aac/C2SoftAacEnc.h index 2655039..6ecfbdd 100644 --- a/media/codec2/components/aac/C2SoftAacEnc.h +++ b/media/codec2/components/aac/C2SoftAacEnc.h
@@ -61,6 +61,10 @@ bool mSignalledError; std::atomic_uint64_t mOutIndex; + // We support max 6 channels + uint8_t mRemainder[6 * sizeof(int16_t)]; + size_t mRemainderLen; + status_t initEncoder(); status_t setAudioParams();