aboutsummaryrefslogtreecommitdiffstats
path: root/libs/android-transcoder/src
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-02-01 21:58:04 +0100
committerChristian Schneppe <christian@pix-art.de>2017-02-01 21:58:04 +0100
commitcf057ef10becec003f250dbe86de6bd478a26392 (patch)
tree403e343717ae370d722b6e6a6d56394d6aa2f026 /libs/android-transcoder/src
parentf928d510e42d371c0a7ccb929dbffe5fadd1d989 (diff)
compress videos with 720p too
Diffstat (limited to 'libs/android-transcoder/src')
-rw-r--r--libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder/format/Android720pFormatStrategy.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder/format/Android720pFormatStrategy.java b/libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder/format/Android720pFormatStrategy.java
index dc59caa1d..9423d4819 100644
--- a/libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder/format/Android720pFormatStrategy.java
+++ b/libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder/format/Android720pFormatStrategy.java
@@ -63,8 +63,8 @@ class Android720pFormatStrategy implements MediaFormatStrategy {
if (longer * 9 != shorter * 16) {
throw new OutputFormatUnavailableException("This video is not 16:9, and is not able to transcode. (" + width + "x" + height + ")");
}
- if (shorter <= SHORTER_LENGTH) {
- Log.d(TAG, "This video is less or equal to 720p, pass-through. (" + width + "x" + height + ")");
+ if (shorter < SHORTER_LENGTH) {
+ Log.d(TAG, "This video is less to 720p, pass-through. (" + width + "x" + height + ")");
return null;
}
MediaFormat format = MediaFormat.createVideoFormat("video/avc", outWidth, outHeight);