Skip to content

Commit

Permalink
avcodec/nvenc: Require Maxwell for lossless
Browse files Browse the repository at this point in the history
  • Loading branch information
BtbN committed May 25, 2016
1 parent a8cf25d commit 24fcb23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libavcodec/nvenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 24fcb23

Please sign in to comment.