* Wideband (AMR-WB) Audio Codecs.
*/
-/* elementfactory information */
-static const GstElementDetails gst_rtp_amrdepay_details =
-GST_ELEMENT_DETAILS ("RTP AMR depayloader",
- "Codec/Depayloader/Network",
- "Extracts AMR or AMR-WB audio from RTP packets (RFC 3267)",
- "Wim Taymans <wim.taymans@gmail.com>");
-
/* RtpAMRDepay signals and args */
enum
{
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_rtp_amr_depay_sink_template));
- gst_element_class_set_details (element_class, &gst_rtp_amrdepay_details);
+ gst_element_class_set_details_simple (element_class, "RTP AMR depayloader",
+ "Codec/Depayloader/Network",
+ "Extracts AMR or AMR-WB audio from RTP packets (RFC 3267)",
+ "Wim Taymans <wim.taymans@gmail.com>");
}
static void
}
/* -1 is invalid */
-static gint nb_frame_size[16] = {
+static const gint nb_frame_size[16] = {
12, 13, 15, 17, 19, 20, 26, 31,
5, -1, -1, -1, -1, -1, -1, 0
};
-static gint wb_frame_size[16] = {
+static const gint wb_frame_size[16] = {
17, 23, 32, 36, 40, 46, 50, 58,
- 60, -1, -1, -1, -1, -1, -1, 0
+ 60, 5, -1, -1, -1, -1, -1, 0
};
static GstBuffer *
gst_rtp_amr_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
{
GstRtpAMRDepay *rtpamrdepay;
+ const gint *frame_size;
GstBuffer *outbuf = NULL;
gint payload_len;
- gint *frame_size;
rtpamrdepay = GST_RTP_AMR_DEPAY (depayload);