diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2012-09-23 16:17:41 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-09-23 21:58:41 +0300 |
commit | cee1950bbb44acd215efd2101fb52d9605701969 (patch) | |
tree | d6562ceda1207d6d8084898c9f53ccecd3bc9d4f /libavformat/sdp.c | |
parent | 71908f0838126146cbce025dd37787e1b9ca171d (diff) | |
download | ffmpeg-cee1950bbb44acd215efd2101fb52d9605701969.tar.gz |
rtp: Packetization of JPEG (RFC 2435)
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r-- | libavformat/sdp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 9bb4815bae..a77c8ebcac 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -547,6 +547,11 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, av_strlcatf(buff, size, "a=rtpmap:%d VP8/90000\r\n", payload_type); break; + case AV_CODEC_ID_MJPEG: + if (payload_type >= RTP_PT_PRIVATE) + av_strlcatf(buff, size, "a=rtpmap:%d JPEG/90000\r\n", + payload_type); + break; case AV_CODEC_ID_ADPCM_G722: if (payload_type >= RTP_PT_PRIVATE) av_strlcatf(buff, size, "a=rtpmap:%d G722/%d/%d\r\n", |