From 72eb0c6381f9406a4e45d23f65373d4936770433 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sun, 27 Oct 2024 15:50:21 -0400 Subject: More synced list, another vcr fix Signed-off-by: Andrew Opalach --- src/codec/ffmpeg/decoder.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/codec/ffmpeg') diff --git a/src/codec/ffmpeg/decoder.c b/src/codec/ffmpeg/decoder.c index 3aafd35..375bdfe 100644 --- a/src/codec/ffmpeg/decoder.c +++ b/src/codec/ffmpeg/decoder.c @@ -36,13 +36,12 @@ static bool ff_decoder_init(struct camu_decoder *dec, struct camu_renderer *rend goto err; } - /* s32 cpus = av_cpu_count(); if (cpus > 4) cpus = 2; - av->codec_context->thread_count = cpus; + av->codec_context->thread_count = cpus / 2; + // FF_THREAD_FRAME or FF_THREAD_SLICE. av->codec_context->thread_type = FF_THREAD_SLICE; al_log_debug("ff_decoder", "Using %i threads for decoder.", cpus); - */ #ifndef CAMU_SINK_NO_VIDEO if (codecpar->codec_type == AVMEDIA_TYPE_VIDEO && renderer && renderer->get_buffer2) { -- cgit v1.2.3-101-g0448