[vlc-commits] Enable GSM RTP packetization

Andrey Utkin git at videolan.org
Sun Dec 8 13:40:43 CET 2013


vlc | branch: master | Andrey Utkin <andrey.krieger.utkin at gmail.com> | Thu Dec  5 22:36:56 2013 +0200| [2c4189d9596f32acde3c2dfaf12bae1e3b743f2a] | committer: Jean-Baptiste Kempf

Enable GSM RTP packetization

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c4189d9596f32acde3c2dfaf12bae1e3b743f2a
---

 modules/stream_out/rtpfmt.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/stream_out/rtpfmt.c b/modules/stream_out/rtpfmt.c
index b680307..aa4bcb1 100644
--- a/modules/stream_out/rtpfmt.c
+++ b/modules/stream_out/rtpfmt.c
@@ -496,6 +496,11 @@ int rtp_get_fmt( vlc_object_t *obj, es_format_t *p_fmt, const char *mux,
             rtp_fmt->clock_rate = 1000;
             rtp_fmt->pf_packetize = rtp_packetize_t140;
             break;
+        case VLC_CODEC_GSM:
+            rtp_fmt->payload_type = 3;
+            rtp_fmt->ptname = "GSM";
+            rtp_fmt->pf_packetize = rtp_packetize_split;
+            break;
 
         default:
             msg_Err( obj, "cannot add this stream (unsupported "



More information about the vlc-commits mailing list