[FFmpeg-cvslog] avcodec/nvenc: Require Maxwell for lossless

Timo Rothenpieler git at videolan.org
Wed May 25 12:53:15 CEST 2016


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Wed May 25 12:15:03 2016 +0200| [24fcb233518477dbb9d8a229072373a9967ab1ce] | committer: Timo Rothenpieler

avcodec/nvenc: Require Maxwell for lossless

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=24fcb233518477dbb9d8a229072373a9967ab1ce
---

 libavcodec/nvenc.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 9aa80f8..73d0584 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;
 



More information about the ffmpeg-cvslog mailing list