[FFmpeg-cvslog] rtmp: Detect and warn if the user tries to pass librtmp style parameters

Martin Storsjö git at videolan.org
Sun Aug 11 11:24:03 CEST 2013


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Sat Aug 10 11:53:31 2013 +0300| [8e1fe345577a42f99591caf8a06c447613449694] | committer: Martin Storsjö

rtmp: Detect and warn if the user tries to pass librtmp style parameters

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8e1fe345577a42f99591caf8a06c447613449694
---

 libavformat/rtmpproto.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 1da3686..a46d26e 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -2313,6 +2313,13 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
                  hostname, sizeof(hostname), &port,
                  path, sizeof(path), s->filename);
 
+    if (strchr(path, ' ')) {
+        av_log(s, AV_LOG_WARNING,
+               "Detected librtmp style URL parameters, these aren't supported "
+               "by the libavformat internal RTMP handler currently enabled. "
+               "See the documentation for the correct way to pass parameters.\n");
+    }
+
     if (auth[0]) {
         char *ptr = strchr(auth, ':');
         if (ptr) {



More information about the ffmpeg-cvslog mailing list