This commit is contained in:
Martin Storsjö 2011-05-18 16:21:50 +03:00 committed by Michael Niedermayer
parent 65a4d8e5a7
commit 6efb29686f
1 changed files with 18 additions and 18 deletions

View File

@ -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, c->sample_rate, c->channels,
payload_type, latm_context2profilelevel(c), config); payload_type, latm_context2profilelevel(c), config);
} else { } else {
if (c->extradata_size) { if (c->extradata_size) {
config = extradata2config(c); config = extradata2config(c);
} else { } else {
/* FIXME: maybe we can forge config information based on the /* FIXME: maybe we can forge config information based on the
* codec parameters... * codec parameters...
*/ */
av_log(c, AV_LOG_ERROR, "AAC with no global headers is currently not supported.\n"); av_log(c, AV_LOG_ERROR, "AAC with no global headers is currently not supported.\n");
return NULL; return NULL;
} }
if (config == NULL) { if (config == NULL) {
return NULL; return NULL;
} }
av_strlcatf(buff, size, "a=rtpmap:%d MPEG4-GENERIC/%d/%d\r\n" av_strlcatf(buff, size, "a=rtpmap:%d MPEG4-GENERIC/%d/%d\r\n"
"a=fmtp:%d profile-level-id=1;" "a=fmtp:%d profile-level-id=1;"
"mode=AAC-hbr;sizelength=13;indexlength=3;" "mode=AAC-hbr;sizelength=13;indexlength=3;"
"indexdeltalength=3%s\r\n", "indexdeltalength=3%s\r\n",
payload_type, c->sample_rate, c->channels, payload_type, c->sample_rate, c->channels,
payload_type, config); payload_type, config);
} }
break; break;
case CODEC_ID_PCM_S16BE: case CODEC_ID_PCM_S16BE: