Commit b3c48f1a authored by lucabe's avatar lucabe

Add minimal support for H.264 video in the SDP generator


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11585 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7a731188
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment