mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-16 20:10:09 +01:00
aac: Provide more information on the failure message
Bug-Id: 761
This commit is contained in:
@@ -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,
|
ERROR_IF(avctx->profile != FF_PROFILE_UNKNOWN && avctx->profile != FF_PROFILE_AAC_LOW,
|
||||||
"Unsupported profile %d\n", avctx->profile);
|
"Unsupported profile %d\n", avctx->profile);
|
||||||
ERROR_IF(1024.0 * avctx->bit_rate / avctx->sample_rate > 6144 * s->channels,
|
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;
|
s->samplerate_index = i;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user