X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fw32thread.c;h=def3adc0df41a592c45cacbbc0a5772127610c2a;hb=e1b2f6ec119dc43a66ff731b98c768778497ff95;hp=501f0cebf3433bde06e019ad51f421332c242a00;hpb=58677d73ed43020ea0840e633588e344396ee256;p=ffmpeg diff --git a/libavcodec/w32thread.c b/libavcodec/w32thread.c index 501f0cebf34..def3adc0df4 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; }