[SCM] libav/experimental: Add minimal support for H.264 video in the SDP generator
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:12:05 UTC 2013
The following commit has been merged in the experimental branch:
commit b21cd0bcb50c5833c20c18e78f3df8c041d3a4bc
Author: Luca Abeni <lucabe72 at email.it>
Date: Mon Jan 21 11:09:06 2008 +0000
Add minimal support for H.264 video in the SDP generator
Originally committed as revision 11585 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 31820b9..a9ba2e6 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);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list