[vlc-devel] [PATCH 5/5] change mp4 subtitle decoder
Jean-Baptiste Kempf
jb at videolan.org
Tue Oct 6 12:37:36 CEST 2015
idem
On 23 Sep, Aaron Wang wrote :
> ---
> 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
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
--
With my kindest regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the vlc-devel
mailing list