[vlc-commits] codec: ttml: kill default spu margins (fix #19161)

Francois Cartegnie git at videolan.org
Tue Nov 28 12:05:19 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 28 12:04:14 2017 +0100| [5fb8b16e4505247e54f1bab40d581cc4e2e4485f] | committer: Francois Cartegnie

codec: ttml: kill default spu margins (fix #19161)

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

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

diff --git a/modules/codec/ttml/substtml.c b/modules/codec/ttml/substtml.c
index 37c3b15213..9656aa7560 100644
--- a/modules/codec/ttml/substtml.c
+++ b/modules/codec/ttml/substtml.c
@@ -1065,6 +1065,7 @@ static int ParseBlock( decoder_t *p_dec, const block_t *p_block )
                     p_spu_sys->region.align = p_dec->p_sys->i_align & (SUBPICTURE_ALIGN_BOTTOM|SUBPICTURE_ALIGN_TOP);
                     p_spu_sys->region.inner_align = p_dec->p_sys->i_align & (SUBPICTURE_ALIGN_LEFT|SUBPICTURE_ALIGN_RIGHT);
                 }
+                p_spu_sys->margin_ratio = 0.0;
 
                 /* copy and take ownership of pointeds */
                 *p_updtregion = p_region->updt;



More information about the vlc-commits mailing list