From cf057ef10becec003f250dbe86de6bd478a26392 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Wed, 1 Feb 2017 21:58:04 +0100 Subject: compress videos with 720p too --- .../ypresto/androidtranscoder/format/Android720pFormatStrategy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs') 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); -- cgit v1.2.3