|
154 | 154 | /** |
155 | 155 | * Retransmission / NACK support |
156 | 156 | */ |
157 | | -#define HISTORY_SIZE_DEFAULT 4096 |
| 157 | +#define HISTORY_SIZE_DEFAULT 512 |
158 | 158 |
|
159 | 159 | /* Calculate the elapsed time from starttime to endtime in milliseconds. */ |
160 | 160 | #define ELAPSED(starttime, endtime) ((int)(endtime - starttime) / 1000) |
@@ -2082,7 +2082,7 @@ static const AVOption options[] = { |
2082 | 2082 | { "authorization", "The optional Bearer token for WHIP Authorization", OFFSET(authorization), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, DEC }, |
2083 | 2083 | { "cert_file", "The optional certificate file path for DTLS", OFFSET(cert_file), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, DEC }, |
2084 | 2084 | { "key_file", "The optional private key file path for DTLS", OFFSET(key_file), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, DEC }, |
2085 | | - { "rtx_history", "Packet history size", OFFSET(history_size), AV_OPT_TYPE_INT, { .i64 = HISTORY_SIZE_DEFAULT }, 64, INT_MAX, DEC }, |
| 2085 | + { "rtx_history", "Packet history size", OFFSET(history_size), AV_OPT_TYPE_INT, { .i64 = HISTORY_SIZE_DEFAULT }, 64, 2048, DEC }, |
2086 | 2086 | { NULL }, |
2087 | 2087 | }; |
2088 | 2088 |
|
|
0 commit comments