[vlc-devel] [PATCH 12/19] ttml codec: fix style attributes to match ttml spec
Stanislas Plessia
stplessia at gmail.com
Mon Aug 29 16:01:10 CEST 2016
---
modules/codec/substtml.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/codec/substtml.c b/modules/codec/substtml.c
index 5aee037..196447c 100644
--- a/modules/codec/substtml.c
+++ b/modules/codec/substtml.c
@@ -301,13 +301,13 @@ static ttml_style_t* ParseTTMLStyle( decoder_t *p_dec, xml_reader_t* p_reader, c
else if( !strcasecmp( "tts:textAlign", attr ) )
{
if( !strcasecmp ( "left", val ) )
- p_ttml_style->i_align = SUBPICTURE_ALIGN_BOTTOM | SUBPICTURE_ALIGN_LEFT;
+ p_ttml_style->i_align = SUBPICTURE_ALIGN_TOP | SUBPICTURE_ALIGN_LEFT;
else if( !strcasecmp ( "right", val ) )
- p_ttml_style->i_align = SUBPICTURE_ALIGN_BOTTOM | SUBPICTURE_ALIGN_RIGHT;
+ p_ttml_style->i_align = SUBPICTURE_ALIGN_TOP | SUBPICTURE_ALIGN_RIGHT;
else if( !strcasecmp ( "center", val ) )
p_ttml_style->i_align = SUBPICTURE_ALIGN_BOTTOM;
else if( !strcasecmp ( "start", val ) )
- p_ttml_style->i_align = SUBPICTURE_ALIGN_TOP | SUBPICTURE_ALIGN_LEFT;
+ p_ttml_style->i_align = SUBPICTURE_ALIGN_BOTTOM | SUBPICTURE_ALIGN_LEFT;
else if( !strcasecmp ( "end", val ) )
p_ttml_style->i_align = SUBPICTURE_ALIGN_BOTTOM | SUBPICTURE_ALIGN_RIGHT;
}
--
2.7.4
More information about the vlc-devel
mailing list