[FFmpeg-soc] [soc]: r5167 - concat/libavformat/playlist.c

gkovacs subversion at mplayerhq.hu
Mon Aug 17 16:49:34 CEST 2009


Author: gkovacs
Date: Mon Aug 17 16:49:34 2009
New Revision: 5167

Log:
remove explicit sizeof(char) in malloc

Modified:
   concat/libavformat/playlist.c

Modified: concat/libavformat/playlist.c
==============================================================================
--- concat/libavformat/playlist.c	Mon Aug 17 16:47:09 2009	(r5166)
+++ concat/libavformat/playlist.c	Mon Aug 17 16:49:34 2009	(r5167)
@@ -171,7 +171,7 @@ void ff_playlist_relative_paths(char **f
         char *fullfpath;
         int wdslen = strlen(workingdir);
         int flslen = strlen(flist[i]);
-        fullfpath = av_malloc(sizeof(char) * (wdslen+flslen+2));
+        fullfpath = av_malloc(wdslen+flslen+2);
         av_strlcpy(fullfpath, workingdir, wdslen+1);
         fullfpath[wdslen] = '/';
         fullfpath[wdslen+1] = 0;


More information about the FFmpeg-soc mailing list