From a451a2288eedfc5a17597680347e77ca5125aacf Mon Sep 17 00:00:00 2001 From: liyi Date: Wed, 9 Jul 2025 11:33:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B7=B3=E8=BD=AC=E5=B8=A7=E9=97=B4?= =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E9=97=B4=E9=9A=94=E3=80=81=E7=BC=93=E5=86=B2?= =?UTF-8?q?=E5=8C=BA=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/top/skychip/video_decode_plugin/VideoDecoder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/kotlin/top/skychip/video_decode_plugin/VideoDecoder.kt b/android/src/main/kotlin/top/skychip/video_decode_plugin/VideoDecoder.kt index 14ae62b..6e8425a 100644 --- a/android/src/main/kotlin/top/skychip/video_decode_plugin/VideoDecoder.kt +++ b/android/src/main/kotlin/top/skychip/video_decode_plugin/VideoDecoder.kt @@ -49,7 +49,7 @@ class VideoDecoder( companion object { private const val TAG = "VideoDecoder" private const val TIMEOUT_US = 10000L - private const val BUFFER_QUEUE_CAPACITY = 100 // 增大输入缓冲区容量 + private const val BUFFER_QUEUE_CAPACITY = 50 // 增大输入缓冲区容量 } // region 成员变量定义 @@ -99,7 +99,7 @@ class VideoDecoder( // 1. 新增成员变量 @Volatile private var latestRenderedTimestampMs: Long? = null - private val MAX_ALLOWED_DELAY_MS = 750 // 最大允许延迟,单位毫秒 + private val MAX_ALLOWED_DELAY_MS = 1000 // 最大允许延迟,单位毫秒 @Volatile private var timestampBaseMs: Long? = null @Volatile