From b91e07f4754c15c55dbbf3ed7c14045c0648185e Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 16 Apr 2020 10:25:12 +0800 Subject: [PATCH] For #307, change max padding to 127 for GSO. --- trunk/conf/full.conf | 4 ++-- trunk/src/app/srs_app_config.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/conf/full.conf b/trunk/conf/full.conf index 6dfb8eca5..646d82b2b 100644 --- a/trunk/conf/full.conf +++ b/trunk/conf/full.conf @@ -446,8 +446,8 @@ rtc_server { # 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; + # default: 127 + padding 127; } vhost rtc.vhost.srs.com { diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index 8df22fea4..fcea9fde3 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -4843,7 +4843,7 @@ bool SrsConfig::get_rtc_server_gso2() int SrsConfig::get_rtc_server_padding() { - static int DEFAULT = 0; + static int DEFAULT = 127; SrsConfDirective* conf = root->get("rtc_server"); if (!conf) {