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 09:08:05 +0000 (10:08 +0100)
commit8ae9bbef87f89f7ea0633b86bf0cadf243bc488f
tree825489ec1bb01f98a49d1de91b58e5e949c2ac76
parent9f14908a96ca13b7bad900c65d82f1404fa4fb89
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