mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-04 21:25:40 +01:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: rtmp: Add a new option 'rtmp_pageurl' doc: Update the description of the rtmp_tcurl option rtmp: Make the description of the rtmp_tcurl option more generic libfdk-aacenc: add LATM/LOAS encapsulation support sctp: add port missing error message tcp: add port missing error message avfilter: Fix printf format string conversion specifier Conflicts: libavcodec/version.h libavfilter/avfilter.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -49,9 +49,12 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
|
||||
|
||||
av_url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname),
|
||||
&port, path, sizeof(path), uri);
|
||||
if (strcmp(proto,"tcp") || port <= 0 || port >= 65536)
|
||||
if (strcmp(proto, "tcp"))
|
||||
return AVERROR(EINVAL);
|
||||
|
||||
if (port <= 0 || port >= 65536) {
|
||||
av_log(h, AV_LOG_ERROR, "Port missing in uri\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
p = strchr(uri, '?');
|
||||
if (p) {
|
||||
if (av_find_info_tag(buf, sizeof(buf), "listen", p))
|
||||
|
||||
Reference in New Issue
Block a user