Commit f61cf0e4 authored by James Almer's avatar James Almer

Merge commit '7c65a76b'

* commit '7c65a76b':
  lavc/qsvenc: add error messeage if ICQ unsupported.
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents 2ca3c049 7c65a76b
......@@ -287,6 +287,12 @@ static int select_rc_mode(AVCodecContext *avctx, QSVEncContext *q)
return AVERROR(EINVAL);
}
if (!want_qscale && avctx->global_quality > 0 && !QSV_HAVE_ICQ){
av_log(avctx, AV_LOG_ERROR,
"ICQ ratecontrol mode requested, but is not supported by this SDK version\n");
return AVERROR(ENOSYS);
}
if (want_qscale) {
rc_mode = MFX_RATECONTROL_CQP;
rc_desc = "constant quantization parameter (CQP)";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment