From fbfe1cea337b0a0dadbc382cf0d2fe54daf541ab Mon Sep 17 00:00:00 2001 From: xufuji456 <839789740@qq.com> Date: Sat, 6 Feb 2021 14:51:12 +0800 Subject: [PATCH] add opus into judge of audio --- app/src/main/java/com/frank/ffmpeg/util/FileUtil.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/frank/ffmpeg/util/FileUtil.kt b/app/src/main/java/com/frank/ffmpeg/util/FileUtil.kt index 9e25868..103c03b 100644 --- a/app/src/main/java/com/frank/ffmpeg/util/FileUtil.kt +++ b/app/src/main/java/com/frank/ffmpeg/util/FileUtil.kt @@ -25,6 +25,7 @@ object FileUtil { private const val TYPE_OGG = "ogg" private const val TYPE_AC3 = "ac3" private const val TYPE_RAW = "pcm" + private const val TYPE_OPUS = "opus" const val TYPE_MP4 = "mp4" private const val TYPE_MKV = "mkv" @@ -120,7 +121,8 @@ object FileUtil { || path.endsWith(TYPE_WAV) || path.endsWith(TYPE_OGG) || path.endsWith(TYPE_AC3) - || path.endsWith(TYPE_RAW)) + || path.endsWith(TYPE_RAW) + || path.endsWith(TYPE_OPUS)) } fun isVideo(filePath: String): Boolean {