diff options
author | Martin Storsjö <martin@martin.st> | 2012-06-17 17:25:46 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-06-18 22:01:04 +0300 |
commit | 579fd87b46ccf8b126fed180a7194460fe55c016 (patch) | |
tree | 372c6b99b302aca2b6c3d77757b6b5414358b6eb /libavformat/sdp.c | |
parent | 89c3960544310c4e8b11f788638e13e63a0ee37b (diff) | |
download | ffmpeg-579fd87b46ccf8b126fed180a7194460fe55c016.tar.gz |
rtpenc: Support packetizing iLBC
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r-- | libavformat/sdp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 7df8b13b67..1867225f71 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -549,6 +549,12 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, c->sample_rate); break; } + case CODEC_ID_ILBC: + av_strlcatf(buff, size, "a=rtpmap:%d iLBC/%d\r\n" + "a=fmtp:%d mode=%d\r\n", + payload_type, c->sample_rate, + payload_type, c->block_align == 38 ? 20 : 30); + break; default: /* Nothing special to do here... */ break; |