mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 18:02:11 +00:00
avformat/chromaprint: improve logging message
Setting silence_threshold requires that -algorithm is set to 3.
This commit is contained in:
parent
1108bd5173
commit
634529c40d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user