From 4cf7b87551f2fd2d6f746acda15d33ded192624d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 26 May 2013 02:18:38 +0200 Subject: av_cpu_count: factorize "detected %d logical cores" message Also print the message just once Signed-off-by: Michael Niedermayer --- libavcodec/pthread.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libavcodec/pthread.c') diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c index 2433880323..259dab0d8c 100644 --- a/libavcodec/pthread.c +++ b/libavcodec/pthread.c @@ -790,7 +790,6 @@ static int frame_thread_init(AVCodecContext *avctx) int nb_cpus = av_cpu_count(); if ((avctx->debug & (FF_DEBUG_VIS_QP | FF_DEBUG_VIS_MB_TYPE)) || avctx->debug_mv) nb_cpus = 1; - av_log(avctx, AV_LOG_DEBUG, "detected %d logical cores\n", nb_cpus); // use number of cores + 1 as thread count if there is more than one if (nb_cpus > 1) thread_count = avctx->thread_count = FFMIN(nb_cpus + 1, MAX_AUTO_THREADS); -- cgit v1.2.3