mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/af_mcompand: make error message more helpful
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
261171d084
commit
78f8036c9c
@ -456,7 +456,7 @@ static int config_output(AVFilterLink *outlink)
|
|||||||
|
|
||||||
new_nb_items += sscanf(tstr2, "%lf", &s->bands[i].topfreq) == 1;
|
new_nb_items += sscanf(tstr2, "%lf", &s->bands[i].topfreq) == 1;
|
||||||
if (s->bands[i].topfreq < 0 || s->bands[i].topfreq >= outlink->sample_rate / 2) {
|
if (s->bands[i].topfreq < 0 || s->bands[i].topfreq >= outlink->sample_rate / 2) {
|
||||||
av_log(ctx, AV_LOG_ERROR, "crossover_frequency should be >=0 and lower than half of sample rate\n");
|
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);
|
||||||
uninit(ctx);
|
uninit(ctx);
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user