mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
Add minimal support for H.264 video in the SDP generator
Originally committed as revision 11585 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3f5d7bb331
commit
b21cd0bcb5
@ -137,6 +137,12 @@ static char *sdp_media_attributes(char *buff, int size, AVCodecContext *c, int p
|
|||||||
char *config = NULL;
|
char *config = NULL;
|
||||||
|
|
||||||
switch (c->codec_id) {
|
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:
|
case CODEC_ID_MPEG4:
|
||||||
if (c->extradata_size) {
|
if (c->extradata_size) {
|
||||||
config = extradata2config(c);
|
config = extradata2config(c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user