diff options
author | Martin Storsjö <martin@martin.st> | 2013-08-10 11:53:31 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-08-10 18:37:18 +0300 |
commit | 8e1fe345577a42f99591caf8a06c447613449694 (patch) | |
tree | 2cff18099e05da9025c8c86e8c9541a1ff24f7ab | |
parent | ba5393a609c723ec8ab7f9727c10fef734c09278 (diff) | |
download | ffmpeg-8e1fe345577a42f99591caf8a06c447613449694.tar.gz |
rtmp: Detect and warn if the user tries to pass librtmp style parameters
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavformat/rtmpproto.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 1da3686a8d..a46d26eb74 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) { |