diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-12-08 09:59:45 +0100 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-12-08 09:59:45 +0100 |
commit | 92186f2d1006c1a2cfcac79a656477f1ddeb34d9 (patch) | |
tree | c695fdd4ef4ee6766f683a2de1bcb2fb90abba13 | |
parent | 3f9c64831cac63f5b216bca339c8d13169118091 (diff) | |
parent | b805482b1fba1d82fbe47023a24c9261f18979b6 (diff) | |
download | ffmpeg-92186f2d1006c1a2cfcac79a656477f1ddeb34d9.tar.gz |
Merge commit 'b805482b1fba1d82fbe47023a24c9261f18979b6'
* commit 'b805482b1fba1d82fbe47023a24c9261f18979b6':
aac: Provide more information on the failure message
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
-rw-r--r-- | libavcodec/aacenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index 2156fc03e1..200f8c456f 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -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]) |