[FFmpeg-cvslog] aac: Provide more information on the failure message

Luca Barbato git at videolan.org
Tue Dec 8 10:01:43 CET 2015


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sat Nov 28 12:28:21 2015 +0100| [b805482b1fba1d82fbe47023a24c9261f18979b6] | committer: Luca Barbato

aac: Provide more information on the failure message

Bug-Id: 761

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b805482b1fba1d82fbe47023a24c9261f18979b6
---

 libavcodec/aacenc.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index d2df65b..00261c0 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;
 



More information about the ffmpeg-cvslog mailing list