]> git.sesse.net Git - ffmpeg/commitdiff
aac: Provide more information on the failure message
authorLuca Barbato <lu_zero@gentoo.org>
Sat, 28 Nov 2015 11:28:21 +0000 (12:28 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 5 Dec 2015 12:11:36 +0000 (13:11 +0100)
Bug-Id: 761

libavcodec/aacenc.c

index d2df65bb6950804845b0ad53fb6fbde6f50d2249..00261c095e07e5a0f328caec24e883dc1be50e76 100644 (file)
@@ -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;