[vlc-commits] subsdec: fix alignment regression

Francois Cartegnie git at videolan.org
Tue Nov 28 16:37:12 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 28 16:36:29 2017 +0100| [e51ec531799fe0dca9f172356770cc784ac812a8] | committer: Francois Cartegnie

subsdec: fix alignment regression

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

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

diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c
index af6ec13039..abc6786f29 100644
--- a/modules/codec/subsdec.c
+++ b/modules/codec/subsdec.c
@@ -456,7 +456,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.inner_align = SUBPICTURE_ALIGN_BOTTOM | p_sys->i_align;
+    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 );
 
     free( psz_subtitle );



More information about the vlc-commits mailing list