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>
pull/388/head
Dmitry Rogozhkin 2 years ago committed by Haihao Xiang
parent 2b41463b87
commit dd2ea014ef
  1. 4
      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);

Loading…
Cancel
Save