OSDN Git Service

android/hal-audio: Fix invalid memory access when downmixing to mono
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Thu, 22 May 2014 13:07:02 +0000 (16:07 +0300)
committerSzymon Janc <szymon.janc@tieto.com>
Mon, 26 May 2014 12:36:25 +0000 (14:36 +0200)
commit510aae0f8e150496386fe8edcc35d33a2bddd107
tree59bfe3b842b47265afacd01af16a9b08984a0c93
parent56a9685d81fc76fd329c5ed662a68fbcb009aa76
android/hal-audio: Fix invalid memory access when downmixing to mono

While iterating over input buffer frame's size was not correctly taken
into account. Input buffer is always PCM 16bit stereo (4 bytes per
frame).
android/hal-audio.c