Mercurial > libavformat.hg
changeset 2958:b489d30f8685 libavformat
Add minimal support for H.264 video in the SDP generator
author | lucabe |
---|---|
date | Mon, 21 Jan 2008 11:09:06 +0000 |
parents | 86702257e2cf |
children | 1b7bf70aab74 |
files | sdp.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sdp.c Sun Jan 20 21:24:25 2008 +0000 +++ b/sdp.c Mon Jan 21 11:09:06 2008 +0000 @@ -137,6 +137,12 @@ 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);