[vlc-commits] codec: ttml: override region position

Francois Cartegnie git at videolan.org
Tue Dec 26 23:47:43 CET 2017


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Dec 21 18:01:40 2017 +0100| [2430c39e3c7825b5a3e7716a7d0cd8890ee1d97e] | committer: Francois Cartegnie

codec: ttml: override region position

occues in <set> animations and
broken CaptionMaker smpte-tt

refs #19231

(cherry picked from commit ca3103da66b961ac184ba18829a491eebf0d4ec7)

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

 modules/codec/ttml/substtml.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/codec/ttml/substtml.c b/modules/codec/ttml/substtml.c
index 98f4cbd710..86182972ad 100644
--- a/modules/codec/ttml/substtml.c
+++ b/modules/codec/ttml/substtml.c
@@ -821,6 +821,12 @@ static void AppendTextToRegion( ttml_context_t *p_ctx, const tt_textnode_t *p_tt
                 p_region->updt.inner_align |= s->i_text_align;
             }
 
+            if( s->extent_h.unit != TTML_UNIT_UNKNOWN )
+                FillUpdaterCoords( s->extent_h, s->extent_v, false, &p_region->updt );
+
+            if( s->origin_h.unit != TTML_UNIT_UNKNOWN )
+                FillUpdaterCoords( s->origin_h, s->origin_v, true, &p_region->updt );
+
             ttml_style_Delete( s );
         }
 



More information about the vlc-commits mailing list