diff options
author | Sven C. Dack <sven.c.dack@sky.com> | 2016-10-14 16:02:54 +0100 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-10-19 12:41:41 +0200 |
commit | da4d0fa86b48d79398b0ccf7ecadc6ff69e3c947 (patch) | |
tree | 54db750dec37311dbb428192d966aa005a648664 /libavcodec/nvenc.c | |
parent | d5082a2ce776a2e43e25998aa07541c9ab7af0d3 (diff) | |
download | ffmpeg-da4d0fa86b48d79398b0ccf7ecadc6ff69e3c947.tar.gz |
avcodec/nvenc: add test for Temporal AQ support
Adds a check to see if the hardware supports temporal aq.
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index e6c1c94144..2505c3d1e3 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -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; } |