From 66eae05e7506c801e9f3271367f8e654a6534e53 Mon Sep 17 00:00:00 2001 From: capriots <29807355+capriots@users.noreply.github.com> Date: Tue, 17 Sep 2024 23:35:27 +0200 Subject: [PATCH] cellAtracXdec: fix FFmpeg warning --- rpcs3/Emu/Cell/Modules/cellAtracXdec.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcs3/Emu/Cell/Modules/cellAtracXdec.cpp b/rpcs3/Emu/Cell/Modules/cellAtracXdec.cpp index 36da7560d0..ff26b79473 100644 --- a/rpcs3/Emu/Cell/Modules/cellAtracXdec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellAtracXdec.cpp @@ -121,6 +121,7 @@ void AtracXdecDecoder::alloc_avcodec() // Allows FFmpeg to output directly into guest memory ctx->opaque = this; + ctx->thread_type = FF_THREAD_SLICE; // Silences a warning by FFmpeg about requesting frame threading with a custom get_buffer2(). Default is FF_THREAD_FRAME & FF_THREAD_SLICE ctx->get_buffer2 = [](AVCodecContext* s, AVFrame* frame, int /*flags*/) -> int { for (s32 i = 0; i < frame->ch_layout.nb_channels; i++)