Skip to content

Commit

Permalink
修复部分手机录制变形问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mabeijianxi committed Oct 13, 2016
1 parent a16a75e commit bc6072d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions SmallVideoLib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 22
versionCode 5
versionName "1.0.4"
versionCode 6
versionName "1.0.5"
}

buildTypes {
Expand All @@ -23,7 +23,7 @@ android {
userOrg = 'mabeijianxi'//bintray.com用户名
groupId = 'com.mabeijianxi'//jcenter上的路径
artifactId = 'small-video-record'//项目名称
publishVersion = '1.0.4'//版本号
publishVersion = '1.0.5'//版本号
desc = '利用FFmpeg来小视频录制与压缩处理!'//描述,不重要
website = 'https://github.com/mabeijianxi/small-video-record'//网站,不重要
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,10 @@ protected void prepareCameraParaments() {
for (int i = 0; i < mSupportedPreviewSizes.size(); i++) {
Size size = mSupportedPreviewSizes.get(i);
if (size.height == SMALL_VIDEO_WIDTH) {
mSupportedPreviewWidth = size.width;
if(mSupportedPreviewWidth==720){
if(SMALL_VIDEO_WIDTH==480){
mSupportedPreviewWidth=640;
}else {
mSupportedPreviewWidth = size.width;
}
findWidth = true;
}
Expand Down
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.mabeijianxi.smallvideo"
minSdkVersion 14
targetSdkVersion 22
versionCode 5
versionName "1.0.4"
versionCode 6
versionName "1.0.5"
}
buildTypes {
release {
Expand Down

0 comments on commit bc6072d

Please sign in to comment.