af_volnorm: fix output range with float input
commit6541c4a48fdce523a08963263f85918b83f3a05c
authorUoti Urpala <uau@mplayer2.org>
Wed, 2 Jan 2013 20:21:26 +0000 (2 22:21 +0200)
committerUoti Urpala <uau@mplayer2.org>
Wed, 2 Jan 2013 20:21:26 +0000 (2 22:21 +0200)
tree29ce8f1933ea62da75b901ff13ac363773639e21
parent1bfd2c5614e9dcf90f1afe2d67ca387456118b5a
af_volnorm: fix output range with float input

af_volnorm can process either int16_t or float audio data. The float
version used 0 to INT_MAX as full value range, when it should be 0 to
1. This effectively disabled the filter (due to all input being
considered to fall in the silence range). Fix.

Reported by Tobias Jacobi <liquid.acid@gmx.net>.
libaf/af_volnorm.c