[vlc-devel] [PATCH] es_out: initialize video.i_visible_width/height

Rémi Denis-Courmont remi at remlab.net
Tue Oct 6 11:39:15 CEST 2015


Le 2015-10-06 12:33, Thomas Guillem a écrit :
> ---
>  src/input/es_out.c | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/src/input/es_out.c b/src/input/es_out.c
> index 2443316..72dbbde 100644
> --- a/src/input/es_out.c
> +++ b/src/input/es_out.c
> @@ -1443,6 +1443,12 @@ static es_out_id_t *EsOutAdd( es_out_t *out,
> const es_format_t *fmt )
>      else
>          es->fmt.i_codec = vlc_fourcc_GetCodec( es->fmt.i_cat,
>                                                 es->fmt.i_codec );
> +    if( es->fmt.i_cat == VIDEO_ES
> +     && (!es->fmt.video.i_visible_width || 
> !es->fmt.video.i_visible_height))
> +    {
> +        es->fmt.video.i_visible_width = es->fmt.video.i_width;
> +        es->fmt.video.i_visible_height = es->fmt.video.i_height;
> +    }

I'd take them individually. But I suspect other code paths still retain 
the problem (e.g. within sout) :-(

>
>      es->i_id = es->fmt.i_id;
>      es->i_meta_id = out->p_sys->i_id;

-- 
Rémi Denis-Courmont
http://www.remlab.net/


More information about the vlc-devel mailing list