Updated copyright message.
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / converters / AvconvAudio.java
index 6746ad6..1b2c88b 100755 (executable)
@@ -1,6 +1,6 @@
 /*
  * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of version 2 of the GNU General Public License
@@ -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<String> getSourceFileExtensions() {
-        return toList("ogg", "wav");
+        return toList(SUPPORTED_FORMATS);
     }
 
     @Override
     public List<String> getTargetFileExtensions() {
-        return toList("mp3");
+        return toList(SUPPORTED_FORMATS);
     }
 
     @Override