You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/nvenc: only auto-pick vbr rc in cq mode
This commit is contained in:
@@ -908,7 +908,7 @@ static av_cold void nvenc_setup_rate_control(AVCodecContext *avctx)
|
||||
ctx->rc = NV_ENC_PARAMS_RC_CBR;
|
||||
} else if (ctx->cqp >= 0) {
|
||||
ctx->rc = NV_ENC_PARAMS_RC_CONSTQP;
|
||||
} else {
|
||||
} else if (ctx->quality >= 0.0f) {
|
||||
ctx->rc = NV_ENC_PARAMS_RC_VBR;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user