提交 92186f2d 编写于 作者: H Hendrik Leppkes

Merge commit 'b805482b'

* commit 'b805482b':
  aac: Provide more information on the failure message
Merged-by: NHendrik Leppkes <h.leppkes@gmail.com>
......@@ -926,7 +926,9 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
ERROR_IF(s->channels > AAC_MAX_CHANNELS || s->channels == 7,
"Unsupported number of channels: %d\n", s->channels);
WARN_IF(1024.0 * avctx->bit_rate / avctx->sample_rate > 6144 * s->channels,
"Too many bits per frame requested, clamping to max\n");
"Too many bits %f > %d per frame requested, clamping to max\n",
1024.0 * avctx->bit_rate / avctx->sample_rate,
6144 * s->channels);
for (i = 0; i < FF_ARRAY_ELEMS(aacenc_profiles); i++)
if (avctx->profile == aacenc_profiles[i])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册