Revision 217b44dd libavcodec/aacenc.c

View differences:

libavcodec/aacenc.c
174 174
        av_log(avctx, AV_LOG_ERROR, "Unsupported profile %d\n", avctx->profile);
175 175
        return -1;
176 176
    }
177
    if (1024.0 * avctx->bit_rate / avctx->sample_rate > 6144 * avctx->channels) {
178
        av_log(avctx, AV_LOG_ERROR, "Too many bits per frame requested\n");
179
        return -1;
180
    }
177 181
    s->samplerate_index = i;
178 182

  
179 183
    dsputil_init(&s->dsp, avctx);

Also available in: Unified diff