[vlc-commits] codec: subsdec: fix ssa forced alignment

Francois Cartegnie git at videolan.org
Tue Mar 13 19:11:03 CET 2018


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Mar 13 00:11:24 2018 +0100| [3344e511388ecdf05f1085cd2c356d88f0d756bf] | committer: Francois Cartegnie

codec: subsdec: fix ssa forced alignment

(cherry picked from commit 4efe1ff533b5514fa86f09fc2867e830603f2ea5)

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

 modules/codec/subsdec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c
index 868174ba96..c548ffe8e5 100644
--- a/modules/codec/subsdec.c
+++ b/modules/codec/subsdec.c
@@ -457,8 +457,8 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
     subpicture_updater_sys_t *p_spu_sys = p_spu->updater.p_sys;
 
     p_spu_sys->region.align = SUBPICTURE_ALIGN_BOTTOM | p_sys->i_align;
-    p_spu_sys->region.inner_align = p_sys->i_align;
-    p_spu_sys->region.p_segments = ParseSubtitles( &p_spu_sys->region.inner_align, psz_subtitle );
+    p_spu_sys->region.inner_align = SUBPICTURE_ALIGN_BOTTOM;
+    p_spu_sys->region.p_segments = ParseSubtitles( &p_spu_sys->region.align, psz_subtitle );
 
     free( psz_subtitle );
 



More information about the vlc-commits mailing list