[FFmpeg-cvslog] avformat/rtpdec: Enable GSM RTP depacketization

Andrey Utkin git at videolan.org
Sun Dec 8 18:54:13 CET 2013


ffmpeg | branch: master | Andrey Utkin <andrey.krieger.utkin at gmail.com> | Thu Dec  5 22:35:03 2013 +0200| [c1b9d7189d3fee48a4439f27a565373fdb96b2d2] | committer: Michael Niedermayer

avformat/rtpdec: Enable GSM RTP depacketization

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c1b9d7189d3fee48a4439f27a565373fdb96b2d2
---

 libavformat/rtpdec.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index fed4e57..ed118b0 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -32,6 +32,12 @@
 
 #define MIN_FEEDBACK_INTERVAL 200000 /* 200 ms in us */
 
+static RTPDynamicProtocolHandler gsm_dynamic_handler = {
+    .enc_name   = "GSM",
+    .codec_type = AVMEDIA_TYPE_AUDIO,
+    .codec_id   = AV_CODEC_ID_GSM,
+};
+
 static RTPDynamicProtocolHandler realmedia_mp3_dynamic_handler = {
     .enc_name   = "X-MP3-draft-00",
     .codec_type = AVMEDIA_TYPE_AUDIO,
@@ -90,6 +96,7 @@ void ff_register_rtp_dynamic_payload_handlers(void)
     ff_register_dynamic_payload_handler(&ff_theora_dynamic_handler);
     ff_register_dynamic_payload_handler(&ff_vorbis_dynamic_handler);
     ff_register_dynamic_payload_handler(&ff_vp8_dynamic_handler);
+    ff_register_dynamic_payload_handler(&gsm_dynamic_handler);
     ff_register_dynamic_payload_handler(&opus_dynamic_handler);
     ff_register_dynamic_payload_handler(&realmedia_mp3_dynamic_handler);
     ff_register_dynamic_payload_handler(&speex_dynamic_handler);



More information about the ffmpeg-cvslog mailing list