]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/w32thread.c
prores: only call get_buffer once per frame
[ffmpeg] / libavcodec / w32thread.c
index 501f0cebf3433bde06e019ad51f421332c242a00..def3adc0df41a592c45cacbbc0a5772127610c2a 100644 (file)
@@ -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;
     }