Skip to content
Snippets Groups Projects
Commit ebe222b2 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed:
Browse files

codecs: webvtt: fix reversed start/end alignments (#22349)

(cherry picked from commit 64a16872)
parent f4828638
No related branches found
No related tags found
No related merge requests found
......@@ -1464,12 +1464,12 @@ static int GetCueTextAlignment( const webvtt_dom_cue_t *p_cue )
return SUBPICTURE_ALIGN_LEFT;
case WEBVTT_ALIGN_RIGHT:
return SUBPICTURE_ALIGN_RIGHT;
case WEBVTT_ALIGN_START:
return ((p_cue->settings.vertical == WEBVTT_ALIGN_RIGHT) ?
SUBPICTURE_ALIGN_LEFT : SUBPICTURE_ALIGN_RIGHT);
case WEBVTT_ALIGN_END:
return ((p_cue->settings.vertical == WEBVTT_ALIGN_RIGHT)) ?
case WEBVTT_ALIGN_START: /* vertical provides rl or rl base direction */
return (p_cue->settings.vertical == WEBVTT_ALIGN_RIGHT) ?
SUBPICTURE_ALIGN_RIGHT : SUBPICTURE_ALIGN_LEFT;
case WEBVTT_ALIGN_END:
return (p_cue->settings.vertical == WEBVTT_ALIGN_RIGHT) ?
SUBPICTURE_ALIGN_LEFT : SUBPICTURE_ALIGN_RIGHT;
default:
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment