From: Svjatoslav Agejenko Date: Sun, 20 Mar 2016 20:28:32 +0000 (+0200) Subject: support more formats X-Git-Tag: meviz-1.0~8 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=34c55bb858515d79b492cd17134e8f571e35c646;hp=1b742640af99284aae1cd10c259254137316ba7c;p=meviz.git support more formats --- diff --git a/src/main/java/eu/svjatoslav/meviz/encoder/converters/AvconvAudio.java b/src/main/java/eu/svjatoslav/meviz/encoder/converters/AvconvAudio.java index 6746ad6..d0c245c 100755 --- a/src/main/java/eu/svjatoslav/meviz/encoder/converters/AvconvAudio.java +++ b/src/main/java/eu/svjatoslav/meviz/encoder/converters/AvconvAudio.java @@ -16,6 +16,8 @@ import java.util.List; public class AvconvAudio extends AbstractConverter { + private static final String[] SUPPORTED_FORMATS = new String[]{"ogg", "wav", "mp3", "m4a", "flac"}; + @Override public String getCommand(final File inputFile, final File targetFile, final EncodingOptions options, String targetFormat) { @@ -28,12 +30,12 @@ public class AvconvAudio extends AbstractConverter { @Override public List getSourceFileExtensions() { - return toList("ogg", "wav"); + return toList(SUPPORTED_FORMATS); } @Override public List getTargetFileExtensions() { - return toList("mp3"); + return toList(SUPPORTED_FORMATS); } @Override