fixing build on linux and mac

This commit is contained in:
Vladislav Mikhalin 2024-08-14 22:00:01 +03:00
parent 0d6e8e227a
commit 5c4ac98d49
6 changed files with 14 additions and 20 deletions

View file

@ -9,8 +9,6 @@
#include "core/libraries/kernel/thread_management.h"
#include "core/libraries/libs.h"
#include <algorithm> // std::max, std::min
namespace Libraries::AvPlayer {
using namespace Kernel;
@ -119,11 +117,6 @@ bool PS4_SYSV_ABI sceAvPlayerGetVideoDataEx(SceAvPlayerHandle handle,
return res;
}
constexpr u32 GetPriority(u32 base, u32 offset) {
// (27D <= base_priority <= 2FC) + offset <= 2FF
return std::min(std::min(std::max(637u, base), 764u) + offset, 767u);
}
SceAvPlayerHandle PS4_SYSV_ABI sceAvPlayerInit(SceAvPlayerInitData* data) {
LOG_TRACE(Lib_AvPlayer, "called");
if (data == nullptr) {