]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/utils.c
lavc: replace internal use of AV_CODEC_CAP_AUTO_THREADS with an internal cap
[ffmpeg] / libavcodec / utils.c
index 66d286565b7b72b51284f6304c5960eadcd26fc1..5d220ada4ba9a177b031ff70ebe010ace2d5990a 100644 (file)
@@ -761,7 +761,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
             goto free_and_end;
         }
     }
-    if (!HAVE_THREADS && !(codec->capabilities & AV_CODEC_CAP_AUTO_THREADS))
+    if (!HAVE_THREADS && !(codec->caps_internal & FF_CODEC_CAP_AUTO_THREADS))
         avctx->thread_count = 1;
 
     if (avctx->codec->max_lowres < avctx->lowres || avctx->lowres < 0) {