diff --git a/src/plugins/ffmpegdecoder/FfmpegDecoder.cpp b/src/plugins/ffmpegdecoder/FfmpegDecoder.cpp index 17ae773d4..e02a347be 100644 --- a/src/plugins/ffmpegdecoder/FfmpegDecoder.cpp +++ b/src/plugins/ffmpegdecoder/FfmpegDecoder.cpp @@ -64,6 +64,11 @@ static std::string getAvError(int errnum) { } static void logAvError(const std::string& method, int errnum) { +#ifndef ENABLE_LOG_AVERROR_EOF + if (errnum == AVERROR_EOF) { + return; /* these are generally legit; no need to pollute the log */ + } +#endif if (errnum != 0) { std::string err = method + "() failed: " + getAvError(errnum); ::debug->Warning(TAG, err.c_str());