Skip to content

Commit 9b1df90

Browse files
committed
fixed condition in 9b80a61
1 parent f93776e commit 9b1df90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video_compress/libavcodec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ static void set_codec_thread_mode(AVCodecContext *codec_ctx, struct setparam_par
16931693
codec_ctx->thread_count = req_thread_count;
16941694
} else if ((codec_ctx->codec->capabilities & AV_CODEC_CAP_OTHER_THREADS) != 0) {
16951695
// do not enable MT for eg. libx265 - libx265 uses frame threads
1696-
if (strncmp(codec_ctx->codec->name, "libvpx", 6)) {
1696+
if (strncmp(codec_ctx->codec->name, "libvpx", 6) == 0) {
16971697
codec_ctx->thread_count = 0;
16981698
}
16991699
} else if (codec_ctx->thread_type != 0) {

0 commit comments

Comments
 (0)