1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Support padding max to 127

This commit is contained in:
winlin 2020-04-16 09:07:42 +08:00
parent a4dbf3ca8a
commit ef48507e80
4 changed files with 4 additions and 3 deletions

View file

@ -445,6 +445,7 @@ rtc_server {
gso on;
# Whether pad first packet for GSO for padding bytes.
# If 0, disable padding for GSO.
# @remark The max padding size is 0x7f(127).
# default: 0
padding 0;
}

View file

@ -43,7 +43,7 @@ obj = json.loads(s)
# 2, 3, 5, 9, 16, 32, 64, 128, 256
keys = ['lt_2', 'lt_3', 'lt_5', 'lt_9', 'lt_16', 'lt_32', 'lt_64', 'lt_128', 'lt_256', 'gt_256']
print("\n----------- 1 2 [3,4] [5,8] [9,15] [16,31] [32,63] [64,127] [128,255] [256,+)"),
print("\n----------- 1 2 [3,4] [5,8] [9,15] [16,31] [32,63] [64,127] [128,255] [256,+) Packets"),
print ""
print("AV---Frames"),

View file

@ -4855,7 +4855,7 @@ int SrsConfig::get_rtc_server_padding()
return DEFAULT;
}
return srs_min(16, ::atoi(conf->arg0().c_str()));
return srs_min(127, ::atoi(conf->arg0().c_str()));
}
SrsConfDirective* SrsConfig::get_rtc(string vhost)