]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/af_mcompand: make error message more helpful
authorPaul B Mahol <onemda@gmail.com>
Sun, 25 Mar 2018 21:26:26 +0000 (23:26 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sun, 25 Mar 2018 21:26:26 +0000 (23:26 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/af_mcompand.c

index 02f987a6a8630ab20795a7699b14dc0672696f76..f142573beabdd127e3dd834eba72f4a5427a0e76 100644 (file)
@@ -456,7 +456,7 @@ static int config_output(AVFilterLink *outlink)
 
         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) {
-            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);
             return AVERROR(EINVAL);
         }