Commit 19e5114e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpegvideo_enc: return proper error instead of failing assertion when max rate is not set

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 01c17b52
......@@ -388,7 +388,6 @@ 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