summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2023-02-14 19:55:46 +0100
committerKelebek1 <eeeedddccc@hotmail.co.uk>2023-02-14 19:55:46 +0100
commit139b645aa23045463c3b0919f47be03a330c87f9 (patch)
treed9bd1fe7421e65336a7c2dac30c032f454b8df2e /src/video_core
parentMerge pull request #9784 from m-HD/master (diff)
downloadyuzu-139b645aa23045463c3b0919f47be03a330c87f9.tar
yuzu-139b645aa23045463c3b0919f47be03a330c87f9.tar.gz
yuzu-139b645aa23045463c3b0919f47be03a330c87f9.tar.bz2
yuzu-139b645aa23045463c3b0919f47be03a330c87f9.tar.lz
yuzu-139b645aa23045463c3b0919f47be03a330c87f9.tar.xz
yuzu-139b645aa23045463c3b0919f47be03a330c87f9.tar.zst
yuzu-139b645aa23045463c3b0919f47be03a330c87f9.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/host1x/codecs/codec.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/host1x/codecs/codec.cpp b/src/video_core/host1x/codecs/codec.cpp
index 42e7d6e4f..3e9022dce 100644
--- a/src/video_core/host1x/codecs/codec.cpp
+++ b/src/video_core/host1x/codecs/codec.cpp
@@ -152,6 +152,8 @@ bool Codec::CreateGpuAvDevice() {
void Codec::InitializeAvCodecContext() {
av_codec_ctx = avcodec_alloc_context3(av_codec);
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() {