swresample/rematrix: fix update of channel matrix if input or output layout is undefined
authorTobias Rapp <t.rapp@noa-archive.com>
Wed, 14 Feb 2018 16:01:08 +0000 (17:01 +0100)
committerTobias Rapp <t.rapp@noa-archive.com>
Tue, 20 Feb 2018 07:47:48 +0000 (08:47 +0100)
commit8be1edf47ba9dcfaf6fccb1e01eeb8610ba97aff
tree0418546e52dada6c876c7be0f6b82fe21426d11c
parent3fdff40a32e31b8bfe9127841f75472f20e30354
swresample/rematrix: fix update of channel matrix if input or output layout is undefined

Prefer direct in/out channel count values over channel layout, when
available. Fixes a pan filter bug (ticket #6790).

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
(cherry picked from commit 6325bd3717348615adafb52e4da2fd01a3007d0a)
libswresample/rematrix.c