From b5438e22a2152684cdcb88eddbd1f47d6d54833c Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 15 Sep 2011 07:00:15 +0000 Subject: [PATCH] * allow to directly re-encode subtitle text without decoding the subtitle data --- source/net/sourceforge/filebot/cli/ArgumentProcessor.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/cli/ArgumentProcessor.java b/source/net/sourceforge/filebot/cli/ArgumentProcessor.java index e7d64ce2..9d3edcab 100644 --- a/source/net/sourceforge/filebot/cli/ArgumentProcessor.java +++ b/source/net/sourceforge/filebot/cli/ArgumentProcessor.java @@ -350,7 +350,10 @@ public class ArgumentProcessor { ByteBuffer data = subtitleFile.getData(); if (outputFormat != null || outputEncoding != null) { - ext = outputFormat.getFilter().extension(); // adjust extension of the output file + if (outputFormat != null) { + ext = outputFormat.getFilter().extension(); // adjust extension of the output file + } + data = exportSubtitles(subtitleFile, outputFormat, 0, outputEncoding); }