Преглед изворни кода

Allow >1 cpu threads on video decoding, disable multi-frame decoding

Kelebek1 пре 3 година
родитељ
комит
139b645aa2
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      src/video_core/host1x/codecs/codec.cpp

+ 2 - 0
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() {