OSDN Git Service

rtpdec: Increase the max size of the jitter buffer to 500 packets
authorMartin Storsjö <martin@martin.st>
Sat, 12 Sep 2015 14:37:09 +0000 (16:37 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 15 Sep 2015 06:35:44 +0000 (09:35 +0300)
Since the actual max length of the jitter buffer is restricted by
max_delay, this shouldn't harm the overall latency (assuming that
max_delay is set properly), while allowing packet reordering with
a larger number of packets (which may be required with high bitrate
video).

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpdec.h

index 9282c4f..a0c5f77 100644 (file)
@@ -35,7 +35,7 @@ typedef struct RTPDynamicProtocolHandler RTPDynamicProtocolHandler;
 #define RTP_MIN_PACKET_LENGTH 12
 #define RTP_MAX_PACKET_LENGTH 8192
 
-#define RTP_REORDER_QUEUE_DEFAULT_SIZE 10
+#define RTP_REORDER_QUEUE_DEFAULT_SIZE 500
 
 #define RTP_NOTS_VALUE ((uint32_t)-1)