提交 52342922 编写于 作者: A Alex Converse

aacenc: Error when an unsupported profile is requested

Originally committed as revision 22784 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 7b374c9f
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册