diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 7d0c703..24dd6a4 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -41,12 +41,12 @@ set_target_properties( ffmpeg PROPERTIES IMPORTED_LOCATION ../../../../libs/${CMAKE_ANDROID_ARCH_ABI}/libffmpeg.so ) -add_library( mp3lame - SHARED - IMPORTED ) -set_target_properties( mp3lame - PROPERTIES IMPORTED_LOCATION - ../../../../libs/${CMAKE_ANDROID_ARCH_ABI}/libmp3lame.so ) +#add_library( mp3lame +# SHARED +# IMPORTED ) +#set_target_properties( mp3lame +# PROPERTIES IMPORTED_LOCATION +# ../../../../libs/${CMAKE_ANDROID_ARCH_ABI}/libmp3lame.so ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") @@ -66,7 +66,7 @@ find_library( # Sets the name of the path variable. target_link_libraries( # Specifies the target library. media-handle - mp3lame +# mp3lame ffmpeg -landroid #native_window -ljnigraphics #bitmap diff --git a/app/src/main/java/com/frank/ffmpeg/util/FileUtil.java b/app/src/main/java/com/frank/ffmpeg/util/FileUtil.java index 01a7cde..359588d 100644 --- a/app/src/main/java/com/frank/ffmpeg/util/FileUtil.java +++ b/app/src/main/java/com/frank/ffmpeg/util/FileUtil.java @@ -111,6 +111,7 @@ public class FileUtil { if (TextUtils.isEmpty(path)) { return false; } + path = path.toLowerCase(); return path.endsWith(TYPE_MP3) || path.endsWith(TYPE_AAC) || path.endsWith(TYPE_AMR) @@ -126,6 +127,7 @@ public class FileUtil { if (TextUtils.isEmpty(path)) { return false; } + path = path.toLowerCase(); return path.endsWith(TYPE_MP4) || path.endsWith(TYPE_MKV) || path.endsWith(TYPE_WEBM)