Mercurial > libavformat.hg
changeset 1688:0ab2495a1815 libavformat
remove sensless casts
author | michael |
---|---|
date | Sun, 21 Jan 2007 20:15:55 +0000 |
parents | 39cafa2f6060 |
children | 3fa40cd9fdae |
files | asf.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/asf.c Sun Jan 21 20:06:19 2007 +0000 +++ b/asf.c Sun Jan 21 20:15:55 2007 +0000 @@ -342,13 +342,13 @@ char *name, *value; name_len = get_le16(pb); - name = (char *)av_malloc(name_len * 2); + name = av_malloc(name_len * 2); get_str16_nolen(pb, name_len, name, name_len * 2); value_type = get_le16(pb); value_len = get_le16(pb); if ((value_type == 0) || (value_type == 1)) // unicode or byte { - value = (char *)av_malloc(value_len * 2); + value = av_malloc(value_len * 2); get_str16_nolen(pb, value_len, value, value_len * 2); if (strcmp(name,"WM/AlbumTitle")==0) { pstrcpy(s->album, sizeof(s->album), value); }