[FFmpeg-soc] [soc]: r5261 - concat/libavformat/avplaylist.c
gkovacs
subversion at mplayerhq.hu
Tue Aug 25 09:00:59 CEST 2009
Author: gkovacs
Date: Tue Aug 25 09:00:59 2009
New Revision: 5261
Log:
don't mix declarations and code
Modified:
concat/libavformat/avplaylist.c
Modified: concat/libavformat/avplaylist.c
==============================================================================
--- concat/libavformat/avplaylist.c Tue Aug 25 09:00:21 2009 (r5260)
+++ concat/libavformat/avplaylist.c Tue Aug 25 09:00:59 2009 (r5261)
@@ -243,8 +243,9 @@ void av_playlist_relative_paths(char **f
int i;
for (i = 0; i < len; ++i) { // determine if relative paths
char *full_file_path;
- int workingdir_len = strlen(workingdir);
- int filename_len = strlen(flist[i]);
+ int workingdir_len, filename_len;
+ workingdir_len = strlen(workingdir);
+ filename_len = strlen(flist[i]);
full_file_path = av_malloc(workingdir_len + filename_len + 2);
av_strlcpy(full_file_path, workingdir, workingdir_len + 1);
full_file_path[workingdir_len] = '/';
More information about the FFmpeg-soc
mailing list