]> git.sesse.net Git - vlc/commitdiff
Enable GSM RTP packetization
authorAndrey Utkin <andrey.krieger.utkin@gmail.com>
Thu, 5 Dec 2013 20:36:56 +0000 (22:36 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 8 Dec 2013 12:38:13 +0000 (13:38 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/stream_out/rtpfmt.c

index b680307e335fdfab4eec76eb3ad4afaacddff8bf..aa4bcb141b860f766d6554ec1527762b9d47df76 100644 (file)
@@ -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 "