[libav-commits] librtmp: Avoid an infiniloop setting connection arguments

Luca Barbato git at libav.org
Thu Jun 23 09:51:09 CEST 2016


Module: libav
Branch: master
Commit: 4dbfcd07570a9e45e9597561023adb6da26f27f6

Author:    Luca Barbato <lu_zero at gentoo.org>
Committer: Luca Barbato <lu_zero at gentoo.org>
Date:      Wed Jun 22 06:36:31 2016 +0200

librtmp: Avoid an infiniloop setting connection arguments

The exit condition was missing.

CC: libav-stable at libav.org

---

 libavformat/librtmp.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/librtmp.c b/libavformat/librtmp.c
index 2e5e641..97c8ad6 100644
--- a/libavformat/librtmp.c
+++ b/libavformat/librtmp.c
@@ -189,6 +189,8 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
 
             if (sep)
                 p = sep + 1;
+            else
+                break;
         }
     }
     if (ctx->playpath) {



More information about the libav-commits mailing list