1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

Merge commit '7c65a76b16bc3a44f1592acde2176f187a058797'

* commit '7c65a76b16bc3a44f1592acde2176f187a058797':
  lavc/qsvenc: add error messeage if ICQ unsupported.

Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2017-12-14 18:46:10 -03:00
commit f61cf0e4df

View File

@ -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)";