added webm support
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / Encoder.java
index e60140b..4b56b13 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * Meviz - Various tools collection to work with multimedia.
  * Copyright (C) 2012, 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
  * as published by the Free Software Foundation.
@@ -87,9 +87,11 @@ public class Encoder implements Module {
                                                                                        + targetFormat
                                                                                        + " format.");
                                                else {
-                                                       final AbstractConverter chosenFormat = formats.get(0);
+                                                       final AbstractConverter chosenFormat = formats
+                                                                       .get(0);
                                                        final EncodingTask encodingTask = new EncodingTask(
-                                                                       sourceFile, targetFile, chosenFormat);
+                                                                       sourceFile, targetFile, chosenFormat,
+                                                                       targetFormat);
 
                                                        if (chosenFormat.isTerminalMandatory())
                                                                encodingTask.setUseTerminal(true);