From de5f0514e9ca39c05795fe60eee20bd4657ce4df Mon Sep 17 00:00:00 2001 From: Maxim Sharabayko Date: Thu, 22 Feb 2024 13:29:39 +0100 Subject: [PATCH] [core] Fixed SRT_SOCKOPT_NPOST when ENABLE_MAXREXMITBW is defined. A follow up fix for #2889. --- srtcore/core.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srtcore/core.h b/srtcore/core.h index 74b097efd..10746c8c9 100644 --- a/srtcore/core.h +++ b/srtcore/core.h @@ -120,7 +120,12 @@ enum AckDataItem }; const size_t ACKD_FIELD_SIZE = sizeof(int32_t); +#ifdef ENABLE_MAXREXMITBW +static const size_t SRT_SOCKOPT_NPOST = 13; +#else static const size_t SRT_SOCKOPT_NPOST = 12; +#endif + extern const SRT_SOCKOPT srt_post_opt_list []; enum GroupDataItem