[SCM] libav/experimental: remove sensless casts

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:55:15 UTC 2013


The following commit has been merged in the experimental branch:
commit fe468b331a956082314061925a355e566611cecc
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Sun Jan 21 20:15:55 2007 +0000

    remove sensless casts
    
    Originally committed as revision 7612 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/asf.c b/libavformat/asf.c
index c971828..a182023 100644
--- a/libavformat/asf.c
+++ b/libavformat/asf.c
@@ -342,13 +342,13 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
                         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); }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list