From cee1950bbb44acd215efd2101fb52d9605701969 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Sun, 23 Sep 2012 16:17:41 +0200 Subject: rtp: Packetization of JPEG (RFC 2435) --- libavformat/sdp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavformat/sdp.c') 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", -- cgit v1.2.3