OSDN Git Service

SoftOpus: Fix output buffer capacity.
authorVignesh Venkatasubramanian <vigneshv@google.com>
Thu, 11 Jun 2015 18:15:00 +0000 (11:15 -0700)
committerAbhishek Arya <aarya@google.com>
Sat, 15 Aug 2015 04:21:59 +0000 (04:21 +0000)
commit3179e3b3531b5fe93dc7f5b2c378e27010a406d5
treee659016aaed362589b67134e10460176ce72ab4a
parente4ac35fa524b011f272d396b2c12515382bddb94
SoftOpus: Fix output buffer capacity.

The output buffer size as per opus project's sample decoder [1] is
960*6*channel_count. Whereas in SoftOpus, we use 960*6 (without the
channel count multiplier. Fixing it to include maximum number of
channels possible as the multiplier.

[1] http://git.xiph.org/?p=opus-tools.git;a=blob;f=src/opusdec.c;h=d085f04eacdfd49759ffdb73db805562ba396720;hb=f2a2e88b47f6f24083a37be476f140f677fe7160#l571

BUG=20721050

Change-Id: I323891a1b11491782bc093477b09e7757b885674
(cherry picked from commit 08e8227514f5ab99822dfae8b4d39414646ff59d)
media/libstagefright/codecs/opus/dec/SoftOpus.cpp