[vlc-devel] [PATCH 4/5] change common decoders

Jean-Baptiste Kempf jb at videolan.org
Tue Oct 6 12:37:31 CEST 2015


This should be in the core.

On 23 Sep, Aaron Wang wrote :
> ---
>  modules/codec/subsdec.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c
> index 1c9df6f..21dc53e 100644
> --- a/modules/codec/subsdec.c
> +++ b/modules/codec/subsdec.c
> @@ -631,7 +631,10 @@ 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->align = SUBPICTURE_ALIGN_BOTTOM | p_sys->i_align;
> +    int i_align = SUBPICTURE_ALIGN_BOTTOM;
> +    if(p_dec->fmt_in.subs.i_ord == 1)
> +        i_align = SUBPICTURE_ALIGN_TOP;
> +    p_spu_sys->align = i_align | p_sys->i_align;
>      p_spu_sys->p_segments = ParseSubtitles( &p_spu_sys->align, psz_subtitle );
>  
>      free( psz_subtitle );
> -- 
> 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