af_scaletempo: use float division for rate

From what I understand the division is to align the dimension of the
value from seconds to milliseconds. Hard to tell whether the "rounding"
was intentional or not; I'm tipping on "not".

Found by Coverity.
This commit is contained in:
wm4 2014-11-21 10:01:29 +01:00
parent 86b521f7df
commit c01a62efbc
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ static int control(struct af_instance *af, int cmd, void *arg)
switch (cmd) {
case AF_CONTROL_REINIT: {
struct mp_audio *data = (struct mp_audio *)arg;
float srate = data->rate / 1000;
float srate = data->rate / 1000.0;
int nch = data->nch;
int use_int = 0;