[FFmpeg-cvslog] ffserver: warn if config uses a system port

Reynaldo H. Verdejo Pinochet git at videolan.org
Mon Aug 18 04:53:01 CEST 2014


ffmpeg | branch: master | Reynaldo H. Verdejo Pinochet <reynaldo at osg.samsung.com> | Sun Aug 17 20:16:27 2014 -0400| [fb2de3c4d1372965f5bf4aa9037b9b629852dbe3] | committer: Reynaldo H. Verdejo Pinochet

ffserver: warn if config uses a system port

Should be harmless as far as users know what they are doing
but an informative warning wont hurt. For details, refer to
http://tools.ietf.org/html/rfc6335

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo at osg.samsung.com>

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

 ffserver.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/ffserver.c b/ffserver.c
index 57ebfeb..c1c8530 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -4089,6 +4089,8 @@ static int parse_ffconfig(const char *filename)
             if (val < 1 || val > 65536) {
                 ERROR("Invalid port: %s\n", arg);
             }
+            if (val < 1024)
+                WARNING("Trying to use IETF assigned system port: %d\n", val);
             my_http_addr.sin_port = htons(val);
         } else if (!av_strcasecmp(cmd, "HTTPBindAddress") || !av_strcasecmp(cmd, "BindAddress")) {
             if (!av_strcasecmp(cmd, "BindAddress"))



More information about the ffmpeg-cvslog mailing list