From f92d29d20f8d39266060782a925ebbec883b2df2 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 16 Nov 2023 11:20:22 +0100 Subject: [PATCH] Reed-Solomon: addd notice about per-frame protect --- src/rtp/rs.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/rtp/rs.cpp b/src/rtp/rs.cpp index a6bd74774..36d17faa5 100644 --- a/src/rtp/rs.cpp +++ b/src/rtp/rs.cpp @@ -45,6 +45,7 @@ #include "rtp/rs.h" #include "ug_runtime_error.hpp" #include "utils/color_out.h" +#include "utils/text.h" #define DEFAULT_K 200 #define DEFAULT_N 240 @@ -416,5 +417,11 @@ static void usage() { "(default " TBOLD("%d") ", max %d),\n" "\t\t\tmust be > \n\n", DEFAULT_K, MAX_K, DEFAULT_N, MAX_N); -} + char desc[] = + "The n/k ratio determines the redundancy that the FEC provides. " + "But please note that the " TUNDERLINE("strength") + " of the FEC applies " TBOLD ("per frame") " basis, so 20%" + " redundancy will cover 20% loss in a signle frame only.\n"; + color_printf("%s\n", wrap_paragraph(desc)); +}