diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-02-01 21:58:04 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-02-01 21:58:04 +0100 |
commit | cf057ef10becec003f250dbe86de6bd478a26392 (patch) | |
tree | 403e343717ae370d722b6e6a6d56394d6aa2f026 /libs/android-transcoder | |
parent | f928d510e42d371c0a7ccb929dbffe5fadd1d989 (diff) |
compress videos with 720p too
Diffstat (limited to 'libs/android-transcoder')
-rw-r--r-- | libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder/format/Android720pFormatStrategy.java | 4 |
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); |