]> git.sesse.net Git - ffmpeg/commitdiff
rtpenc: Add support for packetizing speex
authorDmitry Samonenko <shreddingwork@gmail.com>
Sat, 22 Sep 2012 10:32:37 +0000 (14:32 +0400)
committerMartin Storsjö <martin@martin.st>
Wed, 26 Sep 2012 16:04:57 +0000 (19:04 +0300)
This packetization scheme simply places the full packets into the
RTP packet without any extra header bytes.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpenc.c
libavformat/sdp.c
libavformat/version.h

index 33a1f05dd7aa81c203c92816a68076b980f62c6e..dc257f6391b54a9c72358994119f1467dfe8c3be 100644 (file)
@@ -76,6 +76,7 @@ static int is_supported(enum AVCodecID id)
     case AV_CODEC_ID_ADPCM_G726:
     case AV_CODEC_ID_ILBC:
     case AV_CODEC_ID_MJPEG:
+    case AV_CODEC_ID_SPEEX:
         return 1;
     default:
         return 0;
index a77c8ebcac0687b25cf7a814ab64b138d117c0c0..3791930b592420409f17511aa191ae5f240313b6 100644 (file)
@@ -572,6 +572,10 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c,
                                      payload_type, c->sample_rate,
                                      payload_type, c->block_align == 38 ? 20 : 30);
             break;
+        case AV_CODEC_ID_SPEEX:
+            av_strlcatf(buff, size, "a=rtpmap:%d speex/%d\r\n",
+                                     payload_type, c->sample_rate);
+            break;
         default:
             /* Nothing special to do here... */
             break;
index 2539d6054e8b9ec8db695ef44158b32fd851c7b5..3cb6d82e100cc1d41b680f4fa07e1f98ec279744 100644 (file)
@@ -31,7 +31,7 @@
 
 #define LIBAVFORMAT_VERSION_MAJOR 54
 #define LIBAVFORMAT_VERSION_MINOR 17
-#define LIBAVFORMAT_VERSION_MICRO  0
+#define LIBAVFORMAT_VERSION_MICRO  1
 
 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
                                                LIBAVFORMAT_VERSION_MINOR, \