diff options
author | OvchinnikovDmitrii <ovchinnikov.dmitrii@gmail.com> | 2020-01-28 19:23:43 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-02-01 14:32:08 +0000 |
commit | 843c24a400fa933cdb436eee113a6f501a0c3dd3 (patch) | |
tree | 6ef17eee181b65e5473af1804f59b187dac7dbae /libavcodec/amfenc_hevc.c | |
parent | f0287e120a1a3eb6a1ccd8aca0b980f567a62d72 (diff) | |
download | ffmpeg-843c24a400fa933cdb436eee113a6f501a0c3dd3.tar.gz |
libavcodec/amfenc_hevc.c: Fix constant QP settings for I, P
Diffstat (limited to 'libavcodec/amfenc_hevc.c')
-rw-r--r-- | libavcodec/amfenc_hevc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/amfenc_hevc.c b/libavcodec/amfenc_hevc.c index 7c9a33ab33..8b4d289fac 100644 --- a/libavcodec/amfenc_hevc.c +++ b/libavcodec/amfenc_hevc.c @@ -254,10 +254,10 @@ static av_cold int amf_encode_init_hevc(AVCodecContext *avctx) } if (ctx->qp_p != -1) { - AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_QP_I, ctx->qp_p); + AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_QP_P, ctx->qp_p); } if (ctx->qp_i != -1) { - AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_QP_P, ctx->qp_i); + AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_QP_I, ctx->qp_i); } AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_SKIP_FRAME_ENABLE, ctx->skip_frame); |