Give more cache for RTX. (#3438)

- With probing the packet rate can get high suddenly and remote may not
  have sent receiver report as it might be sending for the non-spikey
  rate. That causes metadata cache overflows. So, give RTX more cahe.
- Don't need a large cache for primary as either reports come in
  regularly (or they are missing for a long time and having a biger
  cache is not the solution for that, so reduce primary cache size)
- Check for receiver report falling exactly back by (1 << 16). Had done
  that change in the inside for loop, but missed the top level check :-(
This commit is contained in:
Raja Subramanian
2025-02-15 22:43:28 +05:30
committed by GitHub
parent 0c966e6a7e
commit b3da3ff2cb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -377,7 +377,7 @@ func NewDownTrack(params DowntrackParams) (*DownTrack, error) {
var mdCacheSize, mdCacheSizeRTX int
if d.kind == webrtc.RTPCodecTypeVideo {
mdCacheSize, mdCacheSizeRTX = 32768, 4096
mdCacheSize, mdCacheSizeRTX = 8192, 8192
} else {
mdCacheSize, mdCacheSizeRTX = 8192, 1024
}