commit | 881a266f9e88a92e004dace2faa2bb28d60a20d9 | [log] [tgz] |
---|---|---|
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | Thu May 30 14:32:22 2019 -0700 |
committer | Wonsik Kim <wonsik@google.com> | Wed Jun 05 09:06:50 2019 -0700 |
tree | 20a0d1f51f5a5e7fe7af55c4bafee7cbd8f77ce9 | |
parent | 90d1d53862638210d848ddedef2600aae35337d3 [diff] |
C2SoftOpusEnc: Fix higher bitrate encoding at lower sample rates Output buffer allocated was not large enough to hold higher bitrate outputs for lower sample rates (eg: 512kbps at 8000 Hz) Also pass remaining bytes in the allocated output buffer correctly to encoder. Bug: 134087860 Test: Apply CTS cl mentioned in the bug Test: atest android.media.cts.EncoderTest#testOpusEncoders Change-Id: I01a75cb76d15b733690e35fa107ec973668d19bb