[vlc-commits] demux: avformat: initialize i_tracks to zero
Zhao Zhili
git at videolan.org
Fri Jan 15 15:11:21 UTC 2021
vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | 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 <robux4 at ycbcr.xyz>
> 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;
More information about the vlc-commits
mailing list