diff options
author | Marton Balint <cus@passwd.hu> | 2021-03-06 23:36:03 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2021-03-13 17:36:48 +0100 |
commit | 5bd1d0f4e7150b76f1a3922aefea507aa8a2dd06 (patch) | |
tree | 7bf42a36b6f67d4e847a01ecc5a3f0150b1f7592 /libavformat | |
parent | 4217e091fefe540a0aab767e4a0a2454808cb4aa (diff) |
avformat/librist: clarify and limit buffer_size
As suggested by librist developers.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/librist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/librist.c b/libavformat/librist.c index 2296bfa079..01a3f9c122 100644 --- a/libavformat/librist.c +++ b/libavformat/librist.c @@ -62,7 +62,7 @@ static const AVOption librist_options[] = { { "simple", NULL, 0, AV_OPT_TYPE_CONST, {.i64=RIST_PROFILE_SIMPLE}, 0, 0, .flags = D|E, "profile" }, { "main", NULL, 0, AV_OPT_TYPE_CONST, {.i64=RIST_PROFILE_MAIN}, 0, 0, .flags = D|E, "profile" }, { "advanced", NULL, 0, AV_OPT_TYPE_CONST, {.i64=RIST_PROFILE_ADVANCED}, 0, 0, .flags = D|E, "profile" }, - { "buffer_size", "set buffer_size", OFFSET(buffer_size), AV_OPT_TYPE_INT, {.i64=0}, 0, INT_MAX, .flags = D|E }, + { "buffer_size", "set buffer_size in ms", OFFSET(buffer_size), AV_OPT_TYPE_INT, {.i64=0}, 0, 30000, .flags = D|E }, { "pkt_size", "set packet size", OFFSET(packet_size), AV_OPT_TYPE_INT, {.i64=1316}, 1, MAX_PAYLOAD_SIZE, .flags = D|E }, { "log_level", "set loglevel", OFFSET(log_level), AV_OPT_TYPE_INT, {.i64=RIST_LOG_INFO}, -1, INT_MAX, .flags = D|E }, { "secret", "set encryption secret",OFFSET(secret), AV_OPT_TYPE_STRING,{.str=NULL}, 0, 0, .flags = D|E }, |