From 054b3ae45e5ff65790a2472e6962278b8bee091f Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 2 Oct 2022 23:20:59 -0500 Subject: [PATCH] Enable RFI for HEVC only --- Limelight/Stream/Connection.m | 13 +------------ moonlight-common/moonlight-common-c | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/Limelight/Stream/Connection.m b/Limelight/Stream/Connection.m index e79195f8..7cc84e3d 100644 --- a/Limelight/Stream/Connection.m +++ b/Limelight/Stream/Connection.m @@ -435,18 +435,7 @@ void ClSetHdrMode(bool enabled) _drCallbacks.setup = DrDecoderSetup; _drCallbacks.start = DrStart; _drCallbacks.stop = DrStop; - - _drCallbacks.capabilities = CAPABILITY_PULL_RENDERER; - -#if !TARGET_OS_TV - // RFI doesn't work properly with HEVC on iOS 11 with an iPhone SE (at least) - // It doesnt work on macOS either, tested with Network Link Conditioner. - // RFI seems to be broken at all resolutions on the Apple TV 4K (1st gen) - // on tvOS 14.5 and above resolutions around 1080p on recent GFE versions. - if (config.width * config.height <= 1920 * 1080) { - _drCallbacks.capabilities |= CAPABILITY_REFERENCE_FRAME_INVALIDATION_AVC; - } -#endif + _drCallbacks.capabilities = CAPABILITY_PULL_RENDERER | CAPABILITY_REFERENCE_FRAME_INVALIDATION_HEVC; LiInitializeAudioCallbacks(&_arCallbacks); _arCallbacks.init = ArInit; diff --git a/moonlight-common/moonlight-common-c b/moonlight-common/moonlight-common-c index 3ae777f9..3593dea5 160000 --- a/moonlight-common/moonlight-common-c +++ b/moonlight-common/moonlight-common-c @@ -1 +1 @@ -Subproject commit 3ae777f9736761a29df4869b1f48d93d24e2ffe6 +Subproject commit 3593dea58544853cdcbb09ec5ff712376e501209