mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 13:48:55 +00:00
rtpg722pay: Fix uninitialized variable compiler warning
The clock rate is always 8000 Hz according to the RFC and the sampling rate must always be 16000 Hz.
This commit is contained in:
parent
8bf7381385
commit
c1877deee0
1 changed files with 3 additions and 2 deletions
|
@ -131,8 +131,9 @@ gst_rtp_g722_pay_setcaps (GstBaseRTPPayload * basepayload, GstCaps * caps)
|
||||||
else
|
else
|
||||||
order = NULL;
|
order = NULL;
|
||||||
|
|
||||||
if (rate == 16000)
|
/* Clock rate is always 8000 Hz for G722 according to
|
||||||
clock_rate = 8000;
|
* RFC 3551 although the sampling rate is 16000 Hz */
|
||||||
|
clock_rate = 8000;
|
||||||
|
|
||||||
gst_basertppayload_set_options (basepayload, "audio", TRUE, "G722",
|
gst_basertppayload_set_options (basepayload, "audio", TRUE, "G722",
|
||||||
clock_rate);
|
clock_rate);
|
||||||
|
|
Loading…
Reference in a new issue