Commit 92186f2d authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit 'b805482b'

* commit 'b805482b':
  aac: Provide more information on the failure message
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 3f9c6483 b805482b
......@@ -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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment