summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2016-05-25 12:15:03 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2016-05-25 12:16:54 +0200
commit24fcb233518477dbb9d8a229072373a9967ab1ce (patch)
tree72d3aa561003bed8bd34dc7749aa78daca040bb2 /libavcodec/nvenc.c
parenta8cf25dd9233e58b2bc82cb593ffeb05362c3395 (diff)
avcodec/nvenc: Require Maxwell for lossless
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c3
1 files changed, 3 insertions, 0 deletions
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;