]> git.sesse.net Git - ffmpeg/commitdiff
avformat/url: Change () position in ff_make_absolute_url()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 16 Dec 2020 18:15:12 +0000 (19:15 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 16 Dec 2020 21:45:28 +0000 (22:45 +0100)
No testcase
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/url.c

index 6db4b4e1ae43da729a144d37e97f175f1cae287b..77d610d95f576ea1be893e987c8d7bee979552b9 100644 (file)
@@ -211,8 +211,8 @@ int ff_make_absolute_url(char *buf, int size, const char *base,
 
     if (!base)
         base = "";
-    if ((ret = ff_url_decompose(&ub, base, NULL) < 0) ||
-        (ret = ff_url_decompose(&uc, rel,  NULL) < 0))
+    if ((ret = ff_url_decompose(&ub, base, NULL)) < 0 ||
+        (ret = ff_url_decompose(&uc, rel,  NULL)) < 0)
         goto error;
 
     keep = ub.url;