diff options
author | Luca Abeni <lucabe72@email.it> | 2008-01-21 11:09:06 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2008-01-21 11:09:06 +0000 |
commit | b21cd0bcb50c5833c20c18e78f3df8c041d3a4bc (patch) | |
tree | bd09eb23b3fabb1a1570dd355d15e73d77324c20 /libavformat | |
parent | 3f5d7bb331b2bfcdccf8855f6892ae6ae4ace70b (diff) | |
download | ffmpeg-b21cd0bcb50c5833c20c18e78f3df8c041d3a4bc.tar.gz |
Add minimal support for H.264 video in the SDP generator
Originally committed as revision 11585 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-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 31820b9882..a9ba2e68de 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -137,6 +137,12 @@ static char *sdp_media_attributes(char *buff, int size, AVCodecContext *c, int p char *config = NULL; switch (c->codec_id) { + case CODEC_ID_H264: + av_strlcatf(buff, size, "a=rtpmap:%d H264/90000\r\n" + "a=fmtp:%d packetization-mode=1%s\r\n", + payload_type, + payload_type, config ? config : ""); + break; case CODEC_ID_MPEG4: if (c->extradata_size) { config = extradata2config(c); |