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>
Mon, 19 Feb 2018 08:06:29 +0000 (09:06 +0100)
commitfea559c3d5575bce51acdb17cf83a1a8fd237feb
treed7d10d0c43cde6c643650f15cb72164626f3078c
parent09419de21620f1ef3af91e2c591a08c36b8c7ba3
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