diff --git a/rx.c b/rx.c index c716ea6..e24b7dc 100644 --- a/rx.c +++ b/rx.c @@ -127,10 +127,9 @@ static int run_rx(RtpSession *session, if (r == -1) return -1; - /* Follow the RFC, 48kHz is reference rate for - * timestamps */ + /* Follow the RFC, payload 0 has 8kHz reference rate */ - ts += r * 48000 / rate; + ts += r * 8000 / rate; } } diff --git a/tx.c b/tx.c index 9ca9f1b..929ff42 100644 --- a/tx.c +++ b/tx.c @@ -218,10 +218,9 @@ int main(int argc, char *argv[]) bytes_per_frame = kbps * 1024 * frame / rate / 8; - /* Follow the RFC, 48kHz is reference rate for - * timestamps */ + /* Follow the RFC, payload 0 has 8kHz reference rate */ - ts_per_frame = frame * 48000 / rate; + ts_per_frame = frame * 8000 / rate; ortp_init(); ortp_scheduler_init();