Commit 2d06f883 authored by michael's avatar michael

warn user if max=bitrate && max > min


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9829 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 38babbf9
......@@ -342,6 +342,10 @@ int MPV_encode_init(AVCodecContext *avctx)
return -1;
}
if(avctx->rc_max_rate && avctx->rc_max_rate == avctx->bit_rate && avctx->rc_max_rate != avctx->rc_min_rate){
av_log(avctx, AV_LOG_INFO, "impossible bitrate constraints, this will fail\n");
}
if(avctx->rc_buffer_size && avctx->bit_rate*av_q2d(avctx->time_base) > avctx->rc_buffer_size){
av_log(avctx, AV_LOG_ERROR, "VBV buffer too small for bitrate\n");
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