[vlc-devel] [PATCH 5/5] change mp4 subtitle decoder
Aaron Wang
hughwung at gmail.com
Wed Sep 23 10:18:04 CEST 2015
---
modules/codec/substx3g.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/codec/substx3g.c b/modules/codec/substx3g.c
index 39bb410..ac4420b 100644
--- a/modules/codec/substx3g.c
+++ b/modules/codec/substx3g.c
@@ -408,7 +408,11 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
p_spu->b_ephemer = (p_block->i_length == 0);
p_spu->b_absolute = false;
- p_spu_sys->align = SUBPICTURE_ALIGN_BOTTOM;
+ if(p_dec->fmt_in.subs.i_ord == 1)
+ p_spu_sys->align = SUBPICTURE_ALIGN_TOP;
+ else
+ p_spu_sys->align = SUBPICTURE_ALIGN_BOTTOM;
+
/* Unwrap */
text_segment_t *p_text_segments = p_segment3g->s;
--
1.9.1
More information about the vlc-devel
mailing list