diff options
author | Zhao Zhili <quinkblack@foxmail.com> | 2022-01-27 00:23:00 +0800 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2022-02-06 23:04:59 +0100 |
commit | 03afa12762f8c07da0706075820d78affaefd5ef (patch) | |
tree | a598bdcee0fa40d07d1020f6a8def80fe108c4fb /libavformat | |
parent | 9daac85da8ad94fde05ae6ec70555ef29a68605c (diff) | |
download | ffmpeg-03afa12762f8c07da0706075820d78affaefd5ef.tar.gz |
avformat/rtpproto: set ttl upper bound to 255
Also remove bogus millisecond reference from help text.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtpproto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c index c92cda63bb..b970901d01 100644 --- a/libavformat/rtpproto.c +++ b/libavformat/rtpproto.c @@ -68,7 +68,7 @@ typedef struct RTPContext { #define D AV_OPT_FLAG_DECODING_PARAM #define E AV_OPT_FLAG_ENCODING_PARAM static const AVOption options[] = { - { "ttl", "Time to live (in milliseconds, multicast only)", OFFSET(ttl), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, .flags = D|E }, + { "ttl", "Time to live (multicast only)", OFFSET(ttl), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 255, .flags = D|E }, { "buffer_size", "Send/Receive buffer size (in bytes)", OFFSET(buffer_size), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, .flags = D|E }, { "rtcp_port", "Custom rtcp port", OFFSET(rtcp_port), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, .flags = D|E }, { "local_rtpport", "Local rtp port", OFFSET(local_rtpport), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, .flags = D|E }, |