[vlc-devel] [PATCH v3 1/2] demux: avformat: initialize i_tracks to zero

"zhilizhao(赵志立)" quinkblack at foxmail.com
Sun Jan 10 08:59:22 UTC 2021


Ping for review, thanks!

> On Jan 4, 2021, at 9:11 PM, Zhao Zhili <quinkblack at foxmail.com> wrote:
> 
> So we can use it in CloseDemux() in error path.
> ---
> modules/demux/avformat/demux.c | 1 +
> 1 file changed, 1 insertion(+)
> 
> diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
> index 4a765b7352..73327cbcc5 100644
> --- a/modules/demux/avformat/demux.c
> +++ b/modules/demux/avformat/demux.c
> @@ -341,6 +341,7 @@ int avformat_OpenDemux( vlc_object_t *p_this )
>     p_sys->ic = 0;
>     p_sys->fmt = fmt;
>     p_sys->tracks = NULL;
> +    p_sys->i_tracks = 0;
>     p_sys->i_ssa_order = 0;
>     TAB_INIT( p_sys->i_attachments, p_sys->attachments);
>     p_sys->p_title = NULL;
> -- 
> 2.25.1
> 



More information about the vlc-devel mailing list