Skip to content

Commit ad06e74

Browse files
ticpucelliso1
andcommitted
[mod_opus] configure timestamp increments to be fixed
Allow transcoding between different rate without messing up the RTP timestamps after transcoding kicks-in. @celliso1: It appears this PR (#2623) has revealed a bug in the opus encoder affecting the timestamp increment. The RFC 7587 states opus always increments at 48kHz regardless of the payload sample rate, but mod_opus.c is using 16 kHz or 8kHz samples per packet. Co-authored-by: celliso1 <[email protected]> Tested-by: Jérôme Poulin <[email protected]>
1 parent ebc0e54 commit ad06e74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mod/codecs/mod_opus/mod_opus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_opus_load)
14871487
}
14881488

14891489
/* 16 khz */
1490-
samples = 160;
1490+
samples = 480;
14911491
bytes = 320;
14921492
mss = 10000;
14931493
rate = 16000;
@@ -1584,7 +1584,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_opus_load)
15841584
}
15851585

15861586
/* 8 khz */
1587-
samples = 80;
1587+
samples = 480;
15881588
bytes = 160;
15891589
mss = 10000;
15901590
rate = 8000;

0 commit comments

Comments
 (0)