mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Merge pull request #7938 from bennettpeter:pullreq-ssa-subtitles
PiperOrigin-RevId: 332814223
This commit is contained in:
parent
9ec9828c93
commit
1850a918f1
2 changed files with 4 additions and 4 deletions
|
|
@ -5,9 +5,8 @@
|
|||
* Data sources:
|
||||
* Add support for `android.resource` URI scheme in `RawResourceDataSource`
|
||||
([#7866](https://github.com/google/ExoPlayer/issues/7866)).
|
||||
* Core library:
|
||||
* Suppress Guava-related ProGuard/R8 warnings
|
||||
([#7904](https://github.com/google/ExoPlayer/issues/7904)).
|
||||
* Text:
|
||||
* Add support for `\h` SSA/ASS style override code (non-breaking space).
|
||||
|
||||
### 2.12.0 (2020-09-11) ###
|
||||
|
||||
|
|
|
|||
|
|
@ -264,7 +264,8 @@ public final class SsaDecoder extends SimpleSubtitleDecoder {
|
|||
String text =
|
||||
SsaStyle.Overrides.stripStyleOverrides(rawText)
|
||||
.replaceAll("\\\\N", "\n")
|
||||
.replaceAll("\\\\n", "\n");
|
||||
.replaceAll("\\\\n", "\n")
|
||||
.replaceAll("\\\\h", "\u00A0");
|
||||
Cue cue = createCue(text, style, styleOverrides, screenWidth, screenHeight);
|
||||
|
||||
int startTimeIndex = addCuePlacerholderByTime(startTimeUs, cueTimesUs, cues);
|
||||
|
|
|
|||
Loading…
Reference in a new issue