Changeset 5adbff48c1f9ca6369ad89a394ed990a1f8a76b6

Show
Ignore:
Timestamp:
02/10/07 23:19:36 (1 year ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1191359976 +0000
git-parent:

[c24f27b17ba85eb29806ce00535c30cd75875413]

git-author:
Rafaël Carré <funman@videolan.org> 1191359976 +0000
Message:

m4a demuxer: initialize correctly p_sys

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/mpeg/m4a.c

    r98a6a93 r5adbff4  
    102102    p_demux->pf_demux  = Demux; 
    103103    p_demux->pf_control= Control; 
    104     p_demux->p_sys     = p_sys = malloc( sizeof( demux_sys_t ) ); 
    105     p_sys->p_es        = NULL; 
     104    p_demux->p_sys     = p_sys = calloc( sizeof( demux_sys_t ), 1 ); 
    106105    p_sys->b_start     = VLC_TRUE; 
    107     p_sys->i_pts       = 0; 
    108     p_sys->i_bytes     = 0; 
    109     p_sys->i_time_offset = 0; 
    110     p_sys->i_bitrate_avg = 0; 
    111106 
    112107    /* Load the mpeg 4 audio packetizer */