From 5adbff48c1f9ca6369ad89a394ed990a1f8a76b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Tue, 2 Oct 2007 21:19:36 +0000 Subject: [PATCH] m4a demuxer: initialize correctly p_sys --- modules/demux/mpeg/m4a.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/demux/mpeg/m4a.c b/modules/demux/mpeg/m4a.c index 7e17ea4bae..4610a46d19 100644 --- a/modules/demux/mpeg/m4a.c +++ b/modules/demux/mpeg/m4a.c @@ -101,13 +101,8 @@ static int Open( vlc_object_t * p_this ) p_demux->pf_demux = Demux; p_demux->pf_control= Control; - p_demux->p_sys = p_sys = malloc( sizeof( demux_sys_t ) ); - p_sys->p_es = NULL; + p_demux->p_sys = p_sys = calloc( sizeof( demux_sys_t ), 1 ); p_sys->b_start = VLC_TRUE; - p_sys->i_pts = 0; - p_sys->i_bytes = 0; - p_sys->i_time_offset = 0; - p_sys->i_bitrate_avg = 0; /* Load the mpeg 4 audio packetizer */ INIT_APACKETIZER( p_sys->p_packetizer, 'm', 'p', '4', 'a' ); -- 2.39.5