avcodec/nvenc: Fix forcing constqp rc mode
The CONSTQP enum value is 0, so this check failed for it.
This commit is contained in:
		
							parent
							
								
									58c6dcb4b7
								
							
						
					
					
						commit
						1330a0f31f
					
				@ -651,7 +651,7 @@ static av_cold void nvenc_setup_rate_control(AVCodecContext *avctx)
 | 
			
		||||
 | 
			
		||||
    if (ctx->flags & NVENC_LOSSLESS) {
 | 
			
		||||
        set_lossless(avctx);
 | 
			
		||||
    } else if (ctx->rc > 0) {
 | 
			
		||||
    } else if (ctx->rc >= 0) {
 | 
			
		||||
        nvenc_override_rate_control(avctx);
 | 
			
		||||
    } else {
 | 
			
		||||
        ctx->encode_config.rcParams.rateControlMode = NV_ENC_PARAMS_RC_VBR;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user