]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/dashdec.c
lavfi/lavfutils: switch to the new decoding API
[ffmpeg] / libavformat / dashdec.c
index 42ea74635b457b5ea2b96bbcfe61f6e624509c31..693fc7372be5273af347585d2930e1e185591282 100644 (file)
@@ -771,7 +771,7 @@ static int resolve_content_path(AVFormatContext *s, const char *url, int *max_ur
     size = strlen(root_url);
     isRootHttp = ishttp(root_url);
 
-    if (root_url[size - 1] != token) {
+    if (size > 0 && root_url[size - 1] != token) {
         av_strlcat(root_url, "/", size + 2);
         size += 2;
     }
@@ -1146,6 +1146,7 @@ static int parse_manifest_adaptationset(AVFormatContext *s, const char *url,
 
 err:
     xmlFree(c->adaptionset_lang);
+    c->adaptionset_lang = NULL;
     return ret;
 }