diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-11-28 12:28:21 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-12-05 13:11:36 +0100 |
commit | b805482b1fba1d82fbe47023a24c9261f18979b6 (patch) | |
tree | 066606cba63f696167e83b3cfd9bc6ae54545f64 /libavcodec | |
parent | c5eb279e240af6b7228a624cd7193732f2d5adaa (diff) | |
download | ffmpeg-b805482b1fba1d82fbe47023a24c9261f18979b6.tar.gz |
aac: Provide more information on the failure message
Bug-Id: 761
Diffstat (limited to 'libavcodec')
-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 d2df65bb69..00261c095e 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -744,7 +744,9 @@ static av_cold int aac_encode_init(AVCodecContext *avctx) ERROR_IF(avctx->profile != FF_PROFILE_UNKNOWN && avctx->profile != FF_PROFILE_AAC_LOW, "Unsupported profile %d\n", avctx->profile); ERROR_IF(1024.0 * avctx->bit_rate / avctx->sample_rate > 6144 * s->channels, - "Too many bits per frame requested\n"); + "Too many bits %f > %d per frame requested\n", + 1024.0 * avctx->bit_rate / avctx->sample_rate, + 6144 * s->channels); s->samplerate_index = i; |