Commit d8fb170d authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ratecontrol: give some trivial tips in case of buffer underflows

See Ticket2725
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cd6241b5
......@@ -328,6 +328,9 @@ int ff_vbv_update(MpegEncContext *s, int frame_size)
rcc->buffer_index -= frame_size;
if (rcc->buffer_index < 0) {
av_log(s->avctx, AV_LOG_ERROR, "rc buffer underflow\n");
if (frame_size > max_rate && s->qscale == s->avctx->qmax) {
av_log(s->avctx, AV_LOG_ERROR, "max bitrate possibly too small or try trellis with large lmax or increase qmax\n");
}
rcc->buffer_index = 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment