diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt
index 143065b..7cf58c9 100644
--- a/app/CMakeLists.txt
+++ b/app/CMakeLists.txt
@@ -50,7 +50,7 @@ set_target_properties( mp3lame
PROPERTIES IMPORTED_LOCATION
../../../../libs/${CMAKE_ANDROID_ARCH_ABI}/libmp3lame.so )
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -Wpointer-sign")
include_directories(src/main/cpp)
include_directories(src/main/cpp/include)
diff --git a/app/src/main/cpp/video_filter.c b/app/src/main/cpp/video_filter.c
index 0111f50..603c7bd 100644
--- a/app/src/main/cpp/video_filter.c
+++ b/app/src/main/cpp/video_filter.c
@@ -41,7 +41,7 @@ AVFrame *pFrameRGBA;
AVFrame *filter_frame;
-uint8_t *buffer;
+static uint8_t *buffer;
struct SwsContext *sws_ctx;
diff --git a/build.gradle b/build.gradle
index 6ddeb0f..3d57aa5 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,13 +3,10 @@
buildscript {
repositories {
jcenter()
- maven {
- url 'https://maven.google.com/'
- name 'Google'
- }
+ google()
}
dependencies {
- classpath 'com.android.tools.build:gradle:3.2.0'
+ classpath 'com.android.tools.build:gradle:4.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
@@ -19,10 +16,7 @@ buildscript {
allprojects {
repositories {
jcenter()
- maven {
- url 'https://maven.google.com/'
- name 'Google'
- }
+ google()
}
}
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 4ca64ca..f6c4f1e 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
评论