]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pthread.c
avcodec/flacenc: Remove always-true check
[ffmpeg] / libavcodec / pthread.c
index 572471586d3bfb416f30ee85b40c5b79e7891b8b..14b7cca4fea82ab270fe1c18286daf89d8498750 100644 (file)
@@ -56,7 +56,7 @@ static void validate_thread_parameters(AVCodecContext *avctx)
     } else if (avctx->codec->capabilities & AV_CODEC_CAP_SLICE_THREADS &&
                avctx->thread_type & FF_THREAD_SLICE) {
         avctx->active_thread_type = FF_THREAD_SLICE;
-    } else if (!(avctx->codec->capabilities & AV_CODEC_CAP_AUTO_THREADS)) {
+    } else if (!(avctx->codec->caps_internal & FF_CODEC_CAP_AUTO_THREADS)) {
         avctx->thread_count       = 1;
         avctx->active_thread_type = 0;
     }