Skip to content

Commit fbfe1ce

Browse files
committed
add opus into judge of audio
1 parent b95724d commit fbfe1ce

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎app/src/main/java/com/frank/ffmpeg/util/FileUtil.kt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ object FileUtil {
2525
private const val TYPE_OGG = "ogg"
2626
private const val TYPE_AC3 = "ac3"
2727
private const val TYPE_RAW = "pcm"
28+
private const val TYPE_OPUS = "opus"
2829

2930
const val TYPE_MP4 = "mp4"
3031
private const val TYPE_MKV = "mkv"
@@ -120,7 +121,8 @@ object FileUtil {
120121
|| path.endsWith(TYPE_WAV)
121122
|| path.endsWith(TYPE_OGG)
122123
|| path.endsWith(TYPE_AC3)
123-
|| path.endsWith(TYPE_RAW))
124+
|| path.endsWith(TYPE_RAW)
125+
|| path.endsWith(TYPE_OPUS))
124126
}
125127

126128
fun isVideo(filePath: String): Boolean {

0 commit comments

Comments
 (0)