Commit da4d0fa8 authored by Sven C. Dack's avatar Sven C. Dack Committed by Timo Rothenpieler

avcodec/nvenc: add test for Temporal AQ support

Adds a check to see if the hardware supports temporal aq.
Signed-off-by: 's avatarTimo Rothenpieler <timo@rothenpieler.org>
parent d5082a2c
......@@ -356,6 +356,12 @@ static int nvenc_check_capabilities(AVCodecContext *avctx)
return AVERROR(ENOSYS);
}
ret = nvenc_check_cap(avctx, NV_ENC_CAPS_SUPPORT_TEMPORAL_AQ);
if (ctx->temporal_aq > 0 && ret <= 0) {
av_log(avctx, AV_LOG_VERBOSE, "Temporal AQ not supported\n");
return AVERROR(ENOSYS);
}
return 0;
}
......
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