A check in nvenc.c checks for NV_ENC_CAPS_SUPPORT_LOSSLESS_ENCODE if
preset >= PRESET_LOSSLESS_DEFAULT which was true for the new presets. As
a result, the use of new presets (P1-P7) fail if the card doesn't
support lossless encoding.
---
libavcodec/nvenc.h | 4 ++--
libavcodec/nvenc_h264.c |
ret <= 0) {
But a comment in the preset enum suggests keeping lossless presets at the end
so that I've followed that advice.
Martin Pulec (1):
avcodec/nvenc: move lossless presets after new ones
libavcodec/nvenc.h | 4 ++--
libavcodec/nvenc_h264.c | 2 +-
libavcodec/nvenc_hevc.c