]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/nvenc: Require Maxwell for lossless
authorTimo Rothenpieler <timo@rothenpieler.org>
Wed, 25 May 2016 10:15:03 +0000 (12:15 +0200)
committerTimo Rothenpieler <timo@rothenpieler.org>
Wed, 25 May 2016 10:16:54 +0000 (12:16 +0200)
libavcodec/nvenc.c

index 9aa80f8aff1829aa1b3b2997ef035c635acb4225..73d05841ae376e665c11c128e7bf30d433beb4d7 100644 (file)
@@ -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;