I think I'd much prefer to stop relying on the order of this enum entirely.
nvenc_map_preset already sets a lossless flag. But it's called way too late for the capability check.
I see no reason the call to nvenc_map_preset can't be moved to much earlier.Like, right into ff_nvenc_encode_init. Then the capacility check can just check for the NVENC_LOSSLESS flag instead of relying on the order of that enum.
I don't believe anything else relies on it, and if it does, it should changed to work like the above.
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".