]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mmsh.c
avidec: fix signed overflow in avi_sync()
[ffmpeg] / libavformat / mmsh.c
index b19973ea769509a6ef5e24c1502a8a65e408661a..0ce282c906cdd58070a26ed5dc7425891287dca2 100644 (file)
@@ -208,7 +208,6 @@ static int get_http_header_data(MMSHContext *mmsh)
             }
         }
     }
-    return 0;
 }
 
 static int mmsh_open(URLContext *h, const char *uri, int flags)
@@ -231,7 +230,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
         host, sizeof(host), &port, path, sizeof(path), location);
     if (port<0)
         port = 80; // default mmsh protocol port
-    ff_url_join(httpname, sizeof(httpname), "http", NULL, host, port, path);
+    ff_url_join(httpname, sizeof(httpname), "http", NULL, host, port, "%s", path);
 
     if (ffurl_alloc(&mms->mms_hd, httpname, AVIO_FLAG_READ) < 0) {
         return AVERROR(EIO);