summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_real.c
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2008-04-30 01:12:20 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2008-04-30 01:12:20 +0100
commitbdcbdde85d5ae6e8f415442d5c28251a4aad8088 (patch)
treeb7fb5832b71a7178294c0e3874dfc07536f978aa /src/demuxers/demux_real.c
parentce9af0fefb2cd0dd5fe5743dcca12f17eedd1ce5 (diff)
downloadxine-lib-bdcbdde85d5ae6e8f415442d5c28251a4aad8088.tar.gz
xine-lib-bdcbdde85d5ae6e8f415442d5c28251a4aad8088.tar.bz2
Replace calloc (n, sizeof (char)) with malloc (n) where zero init isn't needed.
Diffstat (limited to 'src/demuxers/demux_real.c')
-rw-r--r--src/demuxers/demux_real.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c
index 5a20ac92b..6a1d24dba 100644
--- a/src/demuxers/demux_real.c
+++ b/src/demuxers/demux_real.c
@@ -284,17 +284,17 @@ static mdpr_t *real_parse_mdpr(const char *data) {
mdpr->duration=_X_BE_32(&data[28]);
mdpr->stream_name_size=data[32];
- mdpr->stream_name=calloc(mdpr->stream_name_size+1, sizeof(char));
+ mdpr->stream_name=malloc(mdpr->stream_name_size+1);
memcpy(mdpr->stream_name, &data[33], mdpr->stream_name_size);
mdpr->stream_name[(int)mdpr->stream_name_size]=0;
mdpr->mime_type_size=data[33+mdpr->stream_name_size];
- mdpr->mime_type=calloc(mdpr->mime_type_size+1, sizeof(char));
+ mdpr->mime_type=malloc(mdpr->mime_type_size+1);
memcpy(mdpr->mime_type, &data[34+mdpr->stream_name_size], mdpr->mime_type_size);
mdpr->mime_type[(int)mdpr->mime_type_size]=0;
mdpr->type_specific_len=_X_BE_32(&data[34+mdpr->stream_name_size+mdpr->mime_type_size]);
- mdpr->type_specific_data=calloc(mdpr->type_specific_len, sizeof(char));
+ mdpr->type_specific_data=malloc(mdpr->type_specific_len);
memcpy(mdpr->type_specific_data,
&data[38+mdpr->stream_name_size+mdpr->mime_type_size], mdpr->type_specific_len);