diff options
| author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-02-14 18:55:46 +0000 |
|---|---|---|
| committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-02-14 18:55:46 +0000 |
| commit | 6afc4a213486a5832caf7bf934c835c6d278cd8a (patch) | |
| tree | d9bd1fe7421e65336a7c2dac30c032f454b8df2e /src/video_core/host1x/codecs/codec.cpp | |
| parent | e24cd10a63d7efced37145acf2aed67d4907c448 (diff) | |
Allow >1 cpu threads on video decoding, disable multi-frame decoding
Diffstat (limited to 'src/video_core/host1x/codecs/codec.cpp')
| -rw-r--r-- | src/video_core/host1x/codecs/codec.cpp | 2 |
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 42e7d6e4fb..3e9022dce4 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() { |
