vlc | branch: master | Zhao Zhili <[email protected]> | Mon Jan 4 14:11:00 2021 +0100| [3fcd5d9a06fb2d21aab860f63cbab5904fdb2392] | committer: Steve Lhomme
demux: avformat: initialize i_tracks to zero So we can use it in CloseDemux() in error path. Signed-off-by: Steve Lhomme <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3fcd5d9a06fb2d21aab860f63cbab5904fdb2392 --- 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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
