Commit c450cf15 authored by Michael Niedermayer's avatar Michael Niedermayer

libavcodec: be less picky on nonsense rc_max_rate / rc_buffer_size combinations.

Some applications use these combinations and to maintain ABI
compatibility with previous versions we should not suddenly
fail. Thus only display a warning for the newly detected cases
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 49891784
......@@ -390,6 +390,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx)
if ((!avctx->rc_max_rate) != (!avctx->rc_buffer_size)) {
av_log(avctx, AV_LOG_ERROR, "Either both buffer size and max rate or neither must be specified\n");
if (avctx->rc_max_rate && !avctx->rc_buffer_size)
return -1;
}
......
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