1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

vaapi_h265: cu_qp_delta should not be used in constant-QP mode

This commit is contained in:
Mark Thompson 2016-05-31 10:21:19 +01:00
parent 02fa1ad926
commit 2940e196c5

View File

@ -868,7 +868,10 @@ static int vaapi_encode_h265_init_sequence_params(AVCodecContext *avctx)
vpic->pic_fields.bits.screen_content_flag = 0;
vpic->pic_fields.bits.enable_gpu_weighted_prediction = 0;
vpic->pic_fields.bits.cu_qp_delta_enabled_flag = 1;
// Per-CU QP changes are required for non-constant-QP modes.
vpic->pic_fields.bits.cu_qp_delta_enabled_flag =
ctx->va_rc_mode != VA_RC_CQP;
}
{