Skip to content
Snippets Groups Projects
Commit d5e4b891 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

avcodec: reduce the default maximum number threads

Close #19490
parent 90ab989e
No related branches found
No related tags found
No related merge requests found
......@@ -556,7 +556,7 @@ int InitVideoDec( vlc_object_t *obj )
i_thread_count++;
//FIXME: take in count the decoding time
i_thread_count = __MIN( i_thread_count, p_codec->id == AV_CODEC_ID_HEVC ? 12 : 6 );
i_thread_count = __MIN( i_thread_count, p_codec->id == AV_CODEC_ID_HEVC ? 10 : 6 );
}
i_thread_count = __MIN( i_thread_count, p_codec->id == AV_CODEC_ID_HEVC ? 32 : 16 );
msg_Dbg( p_dec, "allowing %d thread(s) for decoding", i_thread_count );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment