mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/nvenc: remove qmin and qmax constraints for vbr
qmin and qmax are not necessary for nvenc vbr. Enforcing this constraint, doesn't allow user to use vbr 2 pass mode without explicity setting the qmin and qmax options Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
This commit is contained in:
parent
b27be563a8
commit
a549243b89
@ -589,16 +589,6 @@ static void nvenc_override_rate_control(AVCodecContext *avctx)
|
||||
}
|
||||
set_constqp(avctx);
|
||||
return;
|
||||
case NV_ENC_PARAMS_RC_2_PASS_VBR:
|
||||
case NV_ENC_PARAMS_RC_VBR:
|
||||
if (avctx->qmin < 0 && avctx->qmax < 0) {
|
||||
av_log(avctx, AV_LOG_WARNING,
|
||||
"The variable bitrate rate-control requires "
|
||||
"the 'qmin' and/or 'qmax' option set.\n");
|
||||
set_vbr(avctx);
|
||||
return;
|
||||
}
|
||||
/* fall through */
|
||||
case NV_ENC_PARAMS_RC_VBR_MINQP:
|
||||
if (avctx->qmin < 0) {
|
||||
av_log(avctx, AV_LOG_WARNING,
|
||||
@ -607,6 +597,9 @@ static void nvenc_override_rate_control(AVCodecContext *avctx)
|
||||
set_vbr(avctx);
|
||||
return;
|
||||
}
|
||||
/* fall through */
|
||||
case NV_ENC_PARAMS_RC_2_PASS_VBR:
|
||||
case NV_ENC_PARAMS_RC_VBR:
|
||||
set_vbr(avctx);
|
||||
break;
|
||||
case NV_ENC_PARAMS_RC_CBR:
|
||||
|
Loading…
Reference in New Issue
Block a user