* allow to directly re-encode subtitle text without decoding the subtitle data

This commit is contained in:
Reinhard Pointner 2011-09-15 07:00:15 +00:00
parent d2b92f3eb8
commit b5438e22a2
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}