* allow to directly re-encode subtitle text without decoding the subtitle data
This commit is contained in:
parent
d2b92f3eb8
commit
b5438e22a2
|
@ -350,7 +350,10 @@ public class ArgumentProcessor {
|
||||||
ByteBuffer data = subtitleFile.getData();
|
ByteBuffer data = subtitleFile.getData();
|
||||||
|
|
||||||
if (outputFormat != null || outputEncoding != null) {
|
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);
|
data = exportSubtitles(subtitleFile, outputFormat, 0, outputEncoding);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue