[FFmpeg-cvslog] avformat/url: Use size_t for len from strlen()

Michael Niedermayer git at videolan.org
Tue Jun 2 00:50:05 CEST 2015


ffmpeg | branch: release/2.4 | Michael Niedermayer <michaelni at gmx.at> | Mon May 11 03:50:01 2015 +0200| [2c50cc497dd7d91e5ae763e3fcbd8e7892f1e5ed] | committer: Michael Niedermayer

avformat/url: Use size_t for len from strlen()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 95efc651294b3cf3e5ec4b3ed36e79d7261545ff)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c50cc497dd7d91e5ae763e3fcbd8e7892f1e5ed
---

 libavformat/url.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/url.c b/libavformat/url.c
index acfb0cf..5dd28a2 100644
--- a/libavformat/url.c
+++ b/libavformat/url.c
@@ -68,7 +68,7 @@ int ff_url_join(char *str, int size, const char *proto,
         av_strlcatf(str, size, ":%d", port);
     if (fmt) {
         va_list vl;
-        int len = strlen(str);
+        size_t len = strlen(str);
 
         va_start(vl, fmt);
         vsnprintf(str + len, size > len ? size - len : 0, fmt, vl);



More information about the ffmpeg-cvslog mailing list