mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
Merge pull request #9810 from Kelebek1/nvdec_threads
Allow >1 cpu threads on video decoding, disable multi-frame decoding
This commit is contained in:
commit
e91ff9b7bd
|
@ -152,6 +152,8 @@ bool Codec::CreateGpuAvDevice() {
|
||||||
void Codec::InitializeAvCodecContext() {
|
void Codec::InitializeAvCodecContext() {
|
||||||
av_codec_ctx = avcodec_alloc_context3(av_codec);
|
av_codec_ctx = avcodec_alloc_context3(av_codec);
|
||||||
av_opt_set(av_codec_ctx->priv_data, "tune", "zerolatency", 0);
|
av_opt_set(av_codec_ctx->priv_data, "tune", "zerolatency", 0);
|
||||||
|
av_codec_ctx->thread_count = 0;
|
||||||
|
av_codec_ctx->thread_type &= ~FF_THREAD_FRAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Codec::InitializeGpuDecoder() {
|
void Codec::InitializeGpuDecoder() {
|
||||||
|
|
Loading…
Reference in a new issue