mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
Merge commit 'b805482b1fba1d82fbe47023a24c9261f18979b6'
* commit 'b805482b1fba1d82fbe47023a24c9261f18979b6': aac: Provide more information on the failure message Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
commit
92186f2d10
@ -926,7 +926,9 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
|
|||||||
ERROR_IF(s->channels > AAC_MAX_CHANNELS || s->channels == 7,
|
ERROR_IF(s->channels > AAC_MAX_CHANNELS || s->channels == 7,
|
||||||
"Unsupported number of channels: %d\n", s->channels);
|
"Unsupported number of channels: %d\n", s->channels);
|
||||||
WARN_IF(1024.0 * avctx->bit_rate / avctx->sample_rate > 6144 * 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++)
|
for (i = 0; i < FF_ARRAY_ELEMS(aacenc_profiles); i++)
|
||||||
if (avctx->profile == aacenc_profiles[i])
|
if (avctx->profile == aacenc_profiles[i])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user