tcp: Clarify the units for the avoption timeouts

Message ID 1425130627-72555-1-git-send-email-martin@martin.st
State Committed
Commit e14f98c62fdf8744b07419314095d1b3248cce75
Headers show

Commit Message

Martin Storsjö Feb. 28, 2015, 1:37 p.m.
---
 libavformat/tcp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Luca Barbato Feb. 28, 2015, 2:18 p.m. | #1
On 28/02/15 14:37, Martin Storsjö wrote:
> ---
>  libavformat/tcp.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

Ok

Patch

diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index a242611..9585dc0 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -43,8 +43,8 @@  typedef struct TCPContext {
 #define E AV_OPT_FLAG_ENCODING_PARAM
 static const AVOption options[] = {
     { "listen",          "Listen for incoming connections",  OFFSET(listen),         AV_OPT_TYPE_INT, { .i64 = 0 },     0,       1,       .flags = D|E },
-    { "timeout",         "Connection timeout",               OFFSET(timeout),        AV_OPT_TYPE_INT, { .i64 = 10000 }, INT_MIN, INT_MAX, .flags = D|E },
-    { "listen_timeout",  "Bind timeout",                     OFFSET(listen_timeout), AV_OPT_TYPE_INT, { .i64 = -1 },    INT_MIN, INT_MAX, .flags = D|E },
+    { "timeout",         "Connection timeout (in milliseconds)", OFFSET(timeout),    AV_OPT_TYPE_INT, { .i64 = 10000 }, INT_MIN, INT_MAX, .flags = D|E },
+    { "listen_timeout",  "Bind timeout (in milliseconds)",   OFFSET(listen_timeout), AV_OPT_TYPE_INT, { .i64 = -1 },    INT_MIN, INT_MAX, .flags = D|E },
     { NULL }
 };