diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 598122a229e584c17db43100c2cb6b84a0081738..d73e015d55a6dabd4832c3ae2be110ea2c5a3b21 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -1690,7 +1690,7 @@ static int handle_connect_error(URLContext *s, const char *desc)
     }
 
     if (!strcmp(authmod, "adobe")) {
-        if ((ret = do_adobe_auth(rt, user, salt, challenge, opaque)) < 0)
+        if ((ret = do_adobe_auth(rt, user, salt, opaque, challenge)) < 0)
             return ret;
     } else {
         if ((ret = do_llnw_auth(rt, user, nonce)) < 0)