git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c24f27b
)
m4a demuxer: initialize correctly p_sys
author
Rafaël Carré
<funman@videolan.org>
Tue, 2 Oct 2007 21:19:36 +0000
(21:19 +0000)
committer
Rafaël Carré
<funman@videolan.org>
Tue, 2 Oct 2007 21:19:36 +0000
(21:19 +0000)
modules/demux/mpeg/m4a.c
patch
|
blob
|
history
diff --git
a/modules/demux/mpeg/m4a.c
b/modules/demux/mpeg/m4a.c
index
7e17ea4
..
4610a46
100644
(file)
--- 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' );