diff options
-rw-r--r-- | common/av_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/av_common.c b/common/av_common.c index cccb0f755e..9c41c03251 100644 --- a/common/av_common.c +++ b/common/av_common.c @@ -18,6 +18,7 @@ #include <assert.h> #include <libavutil/common.h> +#include <libavutil/log.h> #include <libavcodec/avcodec.h> #include "common/common.h" @@ -122,7 +123,7 @@ void mp_set_avcodec_threads(AVCodecContext *avctx, int threads) if (threads == 0) { threads = default_thread_count(); if (threads < 1) { - mp_msg(MSGT_GLOBAL, MSGL_WARN, "Could not determine " + av_log(avctx, AV_LOG_WARNING, "Could not determine " "thread count to use, defaulting to 1.\n"); threads = 1; } |