[FFmpeg-devel] [PATCH] avformat/url: Change () position in ff_make_absolute_url()

Michael Niedermayer michael at niedermayer.cc
Wed Dec 16 20:20:44 EET 2020


No testcase

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavformat/url.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/url.c b/libavformat/url.c
index 6db4b4e1ae..77d610d95f 100644
--- a/libavformat/url.c
+++ b/libavformat/url.c
@@ -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;
-- 
2.17.1



More information about the ffmpeg-devel mailing list