From 24fcb233518477dbb9d8a229072373a9967ab1ce Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Wed, 25 May 2016 12:15:03 +0200 Subject: [PATCH] avcodec/nvenc: Require Maxwell for lossless --- libavcodec/nvenc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 9aa80f8aff..73d05841ae 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -410,6 +410,9 @@ static av_cold int nvenc_check_cuda(AVCodecContext *avctx) goto error; } + if (!strncmp(ctx->preset, "lossless", 8)) + target_smver = 0x52; + if (!nvenc_dyload_cuda(avctx)) return 0;