OSDN Git Service

audio_mix: fix zeroing output channels in certain cases
authorAnton Khirnov <anton@khirnov.net>
Mon, 16 Dec 2013 17:44:15 +0000 (18:44 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 3 Jan 2014 15:42:46 +0000 (16:42 +0100)
commitfc6a3ef40d34ce8443ae57c2452f3f273d7d4891
tree9e472dbdbea043b85291b2f7306a61f463e24a83
parent3d95d27376e59de14f984e7a22a52e066d85df35
audio_mix: fix zeroing output channels in certain cases

Specifically, when the corresponding input channel exists and its matrix
column is all-zero (which is necessary for zeroing the output), the
matrix column must be removed from the matrix.

This is not done currently, so the mixing code would end up using
uninitialized pointers from stack.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
libavresample/audio_mix.c