]> git.sesse.net Git - ffmpeg/commitdiff
avformat/chromaprint: improve logging message
authorAndriy Gelman <andriy.gelman@gmail.com>
Sun, 6 Oct 2019 05:49:48 +0000 (01:49 -0400)
committerGyan Doshi <ffmpeg@gyani.pro>
Mon, 14 Oct 2019 06:59:40 +0000 (12:29 +0530)
Setting silence_threshold requires that -algorithm is set to 3.

libavformat/chromaprint.c

index 547e801cdde34047872eb7d97e6f3773c3e2e4e7..a4c0b97d99c410a964a1efb4516b0b14bbea7e1d 100644 (file)
@@ -73,7 +73,7 @@ static int write_header(AVFormatContext *s)
     if (cpr->silence_threshold != -1) {
 #if CPR_VERSION_INT >= AV_VERSION_INT(0, 7, 0)
         if (!chromaprint_set_option(cpr->ctx, "silence_threshold", cpr->silence_threshold)) {
-            av_log(s, AV_LOG_ERROR, "Failed to set silence threshold.\n");
+            av_log(s, AV_LOG_ERROR, "Failed to set silence threshold. Setting silence_threshold requires -algorithm 3 option.\n");
             goto fail;
         }
 #else