Fixes: CID1422217 Result is not floating-point
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -418,8 +418,8 @@ static int config_output(AVFilterLink *outlink) · 417 unmodified lines | ||
| 418 | 418 | } |
| 419 | 419 | |
| 420 | 420 | new_nb_items += sscanf(tstr2, "%lf", &s->bands[i].topfreq) == 1; |
| 421 | − if (s->bands[i].topfreq < 0 || s->bands[i].topfreq >= outlink->sample_rate / 2) { | |
| 422 | − av_log(ctx, AV_LOG_ERROR, "crossover_frequency: %f, should be >=0 and lower than half of sample rate: %d.\n", s->bands[i].topfreq, outlink->sample_rate / 2); | |
| 421 | + if (s->bands[i].topfreq < 0 || s->bands[i].topfreq >= outlink->sample_rate / 2.0) { | |
| 422 | + av_log(ctx, AV_LOG_ERROR, "crossover_frequency: %f, should be >=0 and lower than half of sample rate: %f.\n", s->bands[i].topfreq, outlink->sample_rate / 2.0); | |
| 423 | 423 | return AVERROR(EINVAL); |
| 424 | 424 | } |
| 425 | 425 | |