You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/mpegvideo_enc: return proper error instead of failing assertion when max rate is not set
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user