diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-24 16:05:09 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-24 16:05:09 +0000 |
commit | f9dd4f27ba103d909a729b6fba2b51394279b6a3 (patch) | |
tree | de147cac4dacf70a70c0d2acbb7f32b6d887ea23 /libmpdemux | |
parent | 6a956da665c1b562497a9982ee4cb267682cba70 (diff) |
Use realloc_struct in more places for consistency
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25522 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_ogg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c index e50294901f..8816fce038 100644 --- a/libmpdemux/demux_ogg.c +++ b/libmpdemux/demux_ogg.c @@ -807,7 +807,7 @@ int demux_ogg_open(demuxer_t* demuxer) { } /// Init the data structure needed for a logical stream - ogg_d->subs = realloc(ogg_d->subs,(ogg_d->num_sub+1)*sizeof(ogg_stream_t)); + ogg_d->subs = realloc_struct(ogg_d->subs,ogg_d->num_sub+1,sizeof(ogg_stream_t)); memset(&ogg_d->subs[ogg_d->num_sub],0,sizeof(ogg_stream_t)); /// Get the stream serial number s_no = ogg_page_serialno(page); @@ -1046,9 +1046,9 @@ int demux_ogg_open(demuxer_t* demuxer) { text_id = ogg_d->num_sub; new_sh_sub(demuxer, ogg_d->n_text); ogg_d->n_text++; - ogg_d->text_ids = realloc(ogg_d->text_ids, sizeof(int) * ogg_d->n_text); + ogg_d->text_ids = realloc_struct(ogg_d->text_ids, ogg_d->n_text, sizeof(int)); ogg_d->text_ids[ogg_d->n_text - 1] = ogg_d->num_sub; - ogg_d->text_langs = realloc(ogg_d->text_langs, sizeof(char *) * ogg_d->n_text); + ogg_d->text_langs = realloc_struct(ogg_d->text_langs, ogg_d->n_text, sizeof(char *)); ogg_d->text_langs[ogg_d->n_text - 1] = NULL; //// Unknown header type } else |