[FFmpeg-cvslog] avfilter/af_mcompand: make error message more helpful

Paul B Mahol git at videolan.org
Mon Mar 26 00:28:26 EEST 2018


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Mar 25 23:26:26 2018 +0200| [78f8036c9c1f7375a0ff8aefe2030f160dbedf36] | committer: Paul B Mahol

avfilter/af_mcompand: make error message more helpful

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=78f8036c9c1f7375a0ff8aefe2030f160dbedf36
---

 libavfilter/af_mcompand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_mcompand.c b/libavfilter/af_mcompand.c
index 02f987a6a8..f142573bea 100644
--- a/libavfilter/af_mcompand.c
+++ b/libavfilter/af_mcompand.c
@@ -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);
         }



More information about the ffmpeg-cvslog mailing list