Commit b117903e authored by alexc's avatar alexc

aacenc: Error when an unsupported profile is requested

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22784 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e11fa333
......@@ -170,6 +170,10 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels: %d\n", avctx->channels);
return -1;
}
if (avctx->profile != FF_PROFILE_UNKNOWN && avctx->profile != FF_PROFILE_AAC_LOW) {
av_log(avctx, AV_LOG_ERROR, "Unsupported profile %d\n", avctx->profile);
return -1;
}
s->samplerate_index = i;
dsputil_init(&s->dsp, avctx);
......
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