diff options
author | Martin Storsjö <martin@martin.st> | 2011-05-18 16:21:50 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-20 01:44:10 +0200 |
commit | 6efb29686fc9a7f76480405df8fe7eaa7a9dd4cf (patch) | |
tree | 726ec9e2ae308c13c61016cb6188bb16cffc6390 | |
parent | 65a4d8e5a78800a4f493fa21c4bb329d31df96ed (diff) | |
download | ffmpeg-streaming-6efb29686fc9a7f76480405df8fe7eaa7a9dd4cf.zip ffmpeg-streaming-6efb29686fc9a7f76480405df8fe7eaa7a9dd4cf.tar.gz |
Reindent
-rw-r--r-- | libavformat/sdp.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index c62e00d..409948e 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -407,24 +407,24 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, payload_type, c->sample_rate, c->channels, payload_type, latm_context2profilelevel(c), config); } else { - if (c->extradata_size) { - config = extradata2config(c); - } else { - /* FIXME: maybe we can forge config information based on the - * codec parameters... - */ - av_log(c, AV_LOG_ERROR, "AAC with no global headers is currently not supported.\n"); - return NULL; - } - if (config == NULL) { - return NULL; - } - av_strlcatf(buff, size, "a=rtpmap:%d MPEG4-GENERIC/%d/%d\r\n" - "a=fmtp:%d profile-level-id=1;" - "mode=AAC-hbr;sizelength=13;indexlength=3;" - "indexdeltalength=3%s\r\n", - payload_type, c->sample_rate, c->channels, - payload_type, config); + if (c->extradata_size) { + config = extradata2config(c); + } else { + /* FIXME: maybe we can forge config information based on the + * codec parameters... + */ + av_log(c, AV_LOG_ERROR, "AAC with no global headers is currently not supported.\n"); + return NULL; + } + if (config == NULL) { + return NULL; + } + av_strlcatf(buff, size, "a=rtpmap:%d MPEG4-GENERIC/%d/%d\r\n" + "a=fmtp:%d profile-level-id=1;" + "mode=AAC-hbr;sizelength=13;indexlength=3;" + "indexdeltalength=3%s\r\n", + payload_type, c->sample_rate, c->channels, + payload_type, config); } break; case CODEC_ID_PCM_S16BE: |