mirror of
https://github.com/samsonjs/media.git
synced 2026-04-12 12:25:47 +00:00
Fix left position for subtitles.
When SubtitlePainter positions the cues centred in the given box, it must add the left offset of the box to get the correct position. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=215535289
This commit is contained in:
parent
43c01562d1
commit
f0e0a7cf57
1 changed files with 1 additions and 1 deletions
|
|
@ -310,7 +310,7 @@ import com.google.android.exoplayer2.util.Util;
|
|||
textLeft = Math.max(textLeft, parentLeft);
|
||||
textRight = Math.min(textLeft + textWidth, parentRight);
|
||||
} else {
|
||||
textLeft = (parentWidth - textWidth) / 2;
|
||||
textLeft = (parentWidth - textWidth) / 2 + parentLeft;
|
||||
textRight = textLeft + textWidth;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue