Commit 24fcb233 authored by Timo Rothenpieler's avatar Timo Rothenpieler

avcodec/nvenc: Require Maxwell for lossless

parent a8cf25dd
...@@ -410,6 +410,9 @@ static av_cold int nvenc_check_cuda(AVCodecContext *avctx) ...@@ -410,6 +410,9 @@ static av_cold int nvenc_check_cuda(AVCodecContext *avctx)
goto error; goto error;
} }
if (!strncmp(ctx->preset, "lossless", 8))
target_smver = 0x52;
if (!nvenc_dyload_cuda(avctx)) if (!nvenc_dyload_cuda(avctx))
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment