aboutsummaryrefslogtreecommitdiff
path: root/libavformat/sdp.c
diff options
context:
space:
mode:
authorMichael Niedermayer2012-09-24 13:53:32 +0200
committerMichael Niedermayer2012-09-24 13:54:24 +0200
commitff584803b7ea31febb3f57124a3702d13c27e24c (patch)
treeb8f22d7053d443db3929d5fe210a2c1a18eca3c8 /libavformat/sdp.c
parent874b9dcc4be78847e488df33aad51752a8bebc2e (diff)
parentcee1950bbb44acd215efd2101fb52d9605701969 (diff)
Merge remote-tracking branch 'qatar/master'
* qatar/master: rtp: Packetization of JPEG (RFC 2435) smoothstreamingenc: Copy the SAR on the AVStreams as well Conflicts: Changelog libavformat/rtpenc.c libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r--libavformat/sdp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 8ff4325817..96b6c44e05 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",