Increment RTP timestamp on padding when using dummy start. (#3989)

* Increment RTP timestamp on padding when using dummy start.

This allows things like egress to have proper sequence to start
the pipeline.

* test
This commit is contained in:
Raja Subramanian
2025-10-07 23:39:51 +05:30
committed by GitHub
parent 4f6ed65d61
commit 158496bca1
4 changed files with 33 additions and 8 deletions
+2 -2
View File
@@ -1943,7 +1943,7 @@ func TestForwarderGetSnTsForPadding(t *testing.T) {
disable(f)
// should get back frame end needed as the last packet did not have RTP marker set
snts, err := f.GetSnTsForPadding(5, false)
snts, err := f.GetSnTsForPadding(5, 0, false)
require.NoError(t, err)
numPadding := 5
@@ -1959,7 +1959,7 @@ func TestForwarderGetSnTsForPadding(t *testing.T) {
require.Equal(t, sntsExpected, snts)
// now that there is a marker, timestamp should jump on first padding when asked again
snts, err = f.GetSnTsForPadding(numPadding, false)
snts, err = f.GetSnTsForPadding(numPadding, 0, false)
require.NoError(t, err)
for i := 0; i < numPadding; i++ {