Skip to content

Commit 0eae163

Browse files
author
Hitesh Sondhi
committed
Merge branch 'release/v0.3'
2 parents 81db8a6 + bf10806 commit 0eae163

File tree

10 files changed

+7
-16
lines changed

10 files changed

+7
-16
lines changed
-14.7 MB
Binary file not shown.

FFmpegAndroid/assets/armeabi-v7a/ffmpeg

100755100644
2.89 MB
Binary file not shown.

FFmpegAndroid/assets/x86/ffmpeg

100755100644
4 MB
Binary file not shown.

FFmpegAndroid/src/androidTest/java/com/github/hiteshsondhi88/libffmpeg/CpuArchHelperTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public void testGetCpuArch() throws Exception {
1414
if (Build.CPU_ABI.equals(CpuArchHelper.getx86CpuAbi()) || Build.CPU_ABI.equals(CpuArchHelper.getx86_64CpuAbi())) {
1515
assertEquals(cpuArch, CpuArch.x86);
1616
} else if (Build.CPU_ABI.equals(CpuArchHelper.getArmeabiv7CpuAbi())) {
17-
assertThat(cpuArch == CpuArch.ARMv7 || cpuArch == CpuArch.ARMv7_NEON).isTrue();
17+
assertEquals(cpuArch, CpuArch.ARMv7);
1818
} else if (Build.CPU_ABI.equals(CpuArchHelper.getArm64CpuAbi())) {
1919
assertEquals(cpuArch, CpuArch.ARMv7);
2020
}else {

FFmpegAndroid/src/androidTest/java/com/github/hiteshsondhi88/libffmpeg/CpuArchTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public class CpuArchTest extends CommonInstrumentationTestCase {
1414

1515
public void testFFmpegAssetsWithSha1Sum() {
1616
testFFmpegAsset(CpuArch.ARMv7, "armeabi-v7a/ffmpeg");
17-
testFFmpegAsset(CpuArch.ARMv7_NEON, "armeabi-v7a-neon/ffmpeg");
1817
testFFmpegAsset(CpuArch.x86, "x86/ffmpeg");
1918
}
2019

FFmpegAndroid/src/main/java/com/github/hiteshsondhi88/libffmpeg/CpuArch.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
import android.text.TextUtils;
44

55
enum CpuArch {
6-
x86("1b3daf0402c38ec0019ec436d71a1389514711bd"),
7-
ARMv7("e27cf3c432b121896fc8af2d147eff88d3074dd5"),
8-
ARMv7_NEON("9463c40e898c53dcac59b8ba39cfd590e2f1b1bf"),
6+
x86("0dd4dbad305ff197a1ea9e6158bd2081d229e70e"),
7+
ARMv7("871888959ba2f063e18f56272d0d98ae01938ceb"),
98
NONE(null);
109

1110
private String sha1;

FFmpegAndroid/src/main/java/com/github/hiteshsondhi88/libffmpeg/CpuArchHelper.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ static CpuArch getCpuArch() {
1717
// check if device is arm v7
1818
if (cpuNativeArchHelper.isARM_v7_CPU(archInfo)) {
1919
// check if device is neon
20-
if (cpuNativeArchHelper.isNeonSupported(archInfo)) {
21-
return CpuArch.ARMv7_NEON;
22-
}
2320
return CpuArch.ARMv7;
2421
}
2522
// check if device is arm64 which is supported by ARMV7
@@ -41,7 +38,7 @@ static String getx86_64CpuAbi() {
4138
static String getArm64CpuAbi() {
4239
return "arm64-v8a";
4340
}
44-
41+
4542
static String getArmeabiv7CpuAbi() {
4643
return "armeabi-v7a";
4744
}

FFmpegAndroid/src/main/java/com/github/hiteshsondhi88/libffmpeg/FFmpeg.java

-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ public void loadBinary(FFmpegLoadBinaryResponseHandler ffmpegLoadBinaryResponseH
4545
Log.i("Loading FFmpeg for armv7 CPU");
4646
cpuArchNameFromAssets = "armeabi-v7a";
4747
break;
48-
case ARMv7_NEON:
49-
Log.i("Loading FFmpeg for armv7-neon CPU");
50-
cpuArchNameFromAssets = "armeabi-v7a-neon";
51-
break;
5248
case NONE:
5349
throw new FFmpegNotSupportedException("Device not supported");
5450
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ For examples and usage instructions head over to:
2121

2222
## Sample
2323
![http://i.imgur.com/cP4WhLn.gif](http://i.imgur.com/cP4WhLn.gif)
24-
* [Download APK](https://github.com/writingminds/ffmpeg-android-java/releases/download/v0.2.3/app-debug.apk)
24+
* [Download APK](https://github.com/writingminds/ffmpeg-android-java/releases/download/v0.3/app-debug.apk)
2525

2626
## JavaDoc
2727
* [Javadoc](http://writingminds.github.io/ffmpeg-android-java/docs/)
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Tue Mar 17 16:54:04 CDT 2015
1+
#Tue Apr 19 16:06:40 GMT+05:30 2016
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip

0 commit comments

Comments
 (0)