diff --git a/libavcodec/w32thread.c b/libavcodec/w32thread.c index 023be0e663..ceaafebc80 100644 --- a/libavcodec/w32thread.c +++ b/libavcodec/w32thread.c @@ -130,8 +130,10 @@ int ff_thread_init(AVCodecContext *s){ ThreadContext *c; uint32_t threadid; - if(!(s->thread_type & FF_THREAD_SLICE)){ - av_log(s, AV_LOG_WARNING, "The requested thread algorithm is not supported with this thread library.\n"); + if (s->thread_type && !(s->thread_type & FF_THREAD_SLICE)) { + av_log(s, AV_LOG_WARNING, + "This thread library only supports FF_THREAD_SLICE" + " threading algorithm.\n"); return 0; }