OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f5d7bb
)
Add minimal support for H.264 video in the SDP generator
author
Luca Abeni
<lucabe72@email.it>
Mon, 21 Jan 2008 11:09:06 +0000
(11:09 +0000)
committer
Luca Abeni
<lucabe72@email.it>
Mon, 21 Jan 2008 11:09:06 +0000
(11:09 +0000)
Originally committed as revision 11585 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/sdp.c
patch
|
blob
|
history
diff --git
a/libavformat/sdp.c
b/libavformat/sdp.c
index
31820b9
..
a9ba2e6
100644
(file)
--- 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);