diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-11 11:17:38 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-11 11:17:43 +0200 |
commit | 6c7a05352f5e941a5cfb371d9b8c9a414194dbef (patch) | |
tree | cf6799eb61ec7cf88eb51057fe5ae6aa9b2dd584 | |
parent | 06186a3160d031b80c8772a646ab98c27b78d011 (diff) | |
parent | 8e1fe345577a42f99591caf8a06c447613449694 (diff) | |
download | ffmpeg-6c7a05352f5e941a5cfb371d9b8c9a414194dbef.tar.gz |
Merge commit '8e1fe345577a42f99591caf8a06c447613449694'
* commit '8e1fe345577a42f99591caf8a06c447613449694':
rtmp: Detect and warn if the user tries to pass librtmp style parameters
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-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 fe11aae0c2..ecb6fbf78c 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -2310,6 +2310,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) { |