mirror of https://github.com/mpv-player/mpv
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:
parent
86b521f7df
commit
c01a62efbc
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue