]> git.sesse.net Git - ffmpeg/commit
avfilter/af_pan: reject expressions referencing the same channel multiple times
authorMarton Balint <cus@passwd.hu>
Sat, 24 Mar 2018 21:57:34 +0000 (22:57 +0100)
committerMarton Balint <cus@passwd.hu>
Wed, 28 Mar 2018 22:07:39 +0000 (00:07 +0200)
commit084ef7d7d542e238e56afd2ee8e64fe46d37104e
treed7119ffc4f10a5b2a8ca9b331f37fc7fefd1067b
parent0031eab61c82af7fca3aff4ced82c6ab9eb4e786
avfilter/af_pan: reject expressions referencing the same channel multiple times

Fixes parsing of expressions like c0=c0+c0 or c0=c0|c0=c1.  Previously no
error was thrown and for input channels, only the last gain factor was used,
for output channels the source channel gains were combined.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavfilter/af_pan.c