aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Rogozhkin <dmitry.v.rogozhkin-at-intel.com@ffmpeg.org>2022-09-23 14:19:20 -0700
committerHaihao Xiang <haihao.xiang@intel.com>2022-09-26 16:17:45 +0800
commitdd2ea014ef273157fe9a0e928e77841fbbee9b2f (patch)
tree0308d4d567c568c59d4f0617ac0300a7ec45cec5
parent2b41463b8706638b9aaf967655f95ddc195c32eb (diff)
downloadffmpeg-dd2ea014ef273157fe9a0e928e77841fbbee9b2f.tar.gz
libavcodec/qsvenc: fixy typo for min/max qp reset
Fixes: 005c7a4 ("libavcodec/qsvenc: Add max/min qp reset support in qsvenc") Reviewed-by: Wenbin Chen <wenbin.chen@intel.com> Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
-rw-r--r--libavcodec/qsvenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 84c6e292aa..8bd9272dc6 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -1760,8 +1760,8 @@ static int update_min_max_qp(AVCodecContext *avctx, QSVEncContext *q)
if (avctx->codec_id != AV_CODEC_ID_H264)
return 0;
- UPDATE_PARAM(q->old_qmax, avctx->qmin);
- UPDATE_PARAM(q->old_qmax, avctx->qmin);
+ UPDATE_PARAM(q->old_qmin, avctx->qmin);
+ UPDATE_PARAM(q->old_qmax, avctx->qmax);
UPDATE_PARAM(q->old_min_qp_i, q->min_qp_i);
UPDATE_PARAM(q->old_max_qp_i, q->max_qp_i);
UPDATE_PARAM(q->old_min_qp_p, q->min_qp_p);