[vlc-commits] ttml codec: fix style attributes to match ttml spec

Stanislas Plessia git at videolan.org
Wed Sep 14 18:39:44 CEST 2016


vlc | branch: master | Stanislas Plessia <stplessia at gmail.com> | Mon Aug 29 16:01:10 2016 +0200| [cffa027ac8400e5434ae5431a8eaf5a419483130] | committer: Hugo Beauzée-Luyssen

ttml codec: fix style attributes to match ttml spec

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cffa027ac8400e5434ae5431a8eaf5a419483130
---

 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;
         }



More information about the vlc-commits mailing list