From 6edd0ab5403d99a3a90fbb190c1dc36f02539071 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 21 May 2017 14:15:05 -0700 Subject: [PATCH] Only use RFI on modern Intel devices --- .../com/limelight/binding/video/MediaCodecHelper.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java b/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java index 153f528d..8a0e8ac5 100644 --- a/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java +++ b/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java @@ -135,8 +135,12 @@ public class MediaCodecHelper { LimeLog.info("Added omx.qcom to AVC reference frame invalidation support list"); refFrameInvalidationAvcPrefixes.add("omx.qcom"); - LimeLog.info("Added omx.intel to AVC reference frame invalidation support list"); - refFrameInvalidationAvcPrefixes.add("omx.intel"); + // Prior to M, we were tricking the decoder into using baseline profile, which + // won't support RFI properly. + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { + LimeLog.info("Added omx.intel to AVC reference frame invalidation support list"); + refFrameInvalidationAvcPrefixes.add("omx.intel"); + } // Qualcomm's early HEVC decoders break hard on our HEVC stream. The best check to // tell the good from the bad decoders are the generation of Adreno GPU included: