mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 04:40:30 +00:00
sdp.c: fixed wrong PT for static PT PCMA/PCMU
fixed the commit f28371c2 (from 2024-02-05)
This commit is contained in:
@@ -226,7 +226,7 @@ get_audio_rtp_pt_rtpmap(audio_codec_t codec, int sample_rate, int channels,
|
||||
rtpmapLine[0] = '\0';
|
||||
int pt = PT_DynRTP_Type97; // default
|
||||
|
||||
if (sample_rate == kHz48 && channels == 1 &&
|
||||
if (sample_rate == kHz8 && channels == 1 &&
|
||||
(codec == AC_ALAW || codec == AC_MULAW)) {
|
||||
pt = codec == AC_MULAW ? PT_ITU_T_G711_PCMU : PT_ITU_T_G711_PCMA;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user