Commit 490ae95a authored by Dmitry Samonenko's avatar Dmitry Samonenko Committed by Martin Storsjö

rtpenc: Add support for packetizing speex

This packetization scheme simply places the full packets into the
RTP packet without any extra header bytes.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 92d2b909
...@@ -76,6 +76,7 @@ static int is_supported(enum AVCodecID id) ...@@ -76,6 +76,7 @@ static int is_supported(enum AVCodecID id)
case AV_CODEC_ID_ADPCM_G726: case AV_CODEC_ID_ADPCM_G726:
case AV_CODEC_ID_ILBC: case AV_CODEC_ID_ILBC:
case AV_CODEC_ID_MJPEG: case AV_CODEC_ID_MJPEG:
case AV_CODEC_ID_SPEEX:
return 1; return 1;
default: default:
return 0; return 0;
......
...@@ -572,6 +572,10 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, ...@@ -572,6 +572,10 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c,
payload_type, c->sample_rate, payload_type, c->sample_rate,
payload_type, c->block_align == 38 ? 20 : 30); payload_type, c->block_align == 38 ? 20 : 30);
break; break;
case AV_CODEC_ID_SPEEX:
av_strlcatf(buff, size, "a=rtpmap:%d speex/%d\r\n",
payload_type, c->sample_rate);
break;
default: default:
/* Nothing special to do here... */ /* Nothing special to do here... */
break; break;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#define LIBAVFORMAT_VERSION_MAJOR 54 #define LIBAVFORMAT_VERSION_MAJOR 54
#define LIBAVFORMAT_VERSION_MINOR 17 #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, \ #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \ LIBAVFORMAT_VERSION_MINOR, \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment