You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/subtitles-octopus.js
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ var SubtitlesOctopus = function (options) {
20
20
self.libassMemoryLimit=options.libassMemoryLimit||0;// set libass bitmap cache memory limit in MiB (approximate)
21
21
self.libassGlyphLimit=options.libassGlyphLimit||0;// set libass glyph cache memory limit in MiB (approximate)
22
22
self.targetFps=options.targetFps||30;
23
-
self.prescaleTradeoff=options.prescaleTradeoff||1.0;// render subtitles less than viewport when less than 1.0 to improve speed, render to more than 1.0 to improve quality
23
+
self.prescaleTradeoff=options.prescaleTradeoff||null;// render subtitles less than viewport when less than 1.0 to improve speed, render to more than 1.0 to improve quality; set to null to disable scaling
24
24
self.softHeightLimit=options.softHeightLimit||1080;// don't apply prescaleTradeoff < 1 when viewport height is less that this limit
25
25
self.hardHeightLimit=options.hardHeightLimit||2160;// don't ever go above this limit
26
26
@@ -674,7 +674,12 @@ var SubtitlesOctopus = function (options) {
0 commit comments