Skip to content

Commit d913ee1

Browse files
committed
avformat/whip: restore HISTORY_SIZE_DEFAULT set
Signed-off-by: Jack Lau <jacklau1222@qq.com>
1 parent 5348acd commit d913ee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libavformat/whip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
/**
155155
* Retransmission / NACK support
156156
*/
157-
#define HISTORY_SIZE_DEFAULT 4096
157+
#define HISTORY_SIZE_DEFAULT 512
158158

159159
/* Calculate the elapsed time from starttime to endtime in milliseconds. */
160160
#define ELAPSED(starttime, endtime) ((int)(endtime - starttime) / 1000)
@@ -2082,7 +2082,7 @@ static const AVOption options[] = {
20822082
{ "authorization", "The optional Bearer token for WHIP Authorization", OFFSET(authorization), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, DEC },
20832083
{ "cert_file", "The optional certificate file path for DTLS", OFFSET(cert_file), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, DEC },
20842084
{ "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 },
20862086
{ NULL },
20872087
};
20882088

0 commit comments

Comments
 (0)