We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de21064 + b6c62e4 commit 1231b20Copy full SHA for 1231b20
modules/cudacodec/src/video_writer.cpp
@@ -318,7 +318,9 @@ GUID EncodingPresetGuid(const EncodePreset nvPreset) {
318
std::string GetVideoCodecString(const GUID codec) {
319
if (codec == NV_ENC_CODEC_H264_GUID) return "AVC/H.264";
320
else if (codec == NV_ENC_CODEC_HEVC_GUID) return "H.265/HEVC";
321
+#if (NVENCAPI_MAJOR_VERSION >= 12)
322
else if (codec == NV_ENC_CODEC_AV1_GUID) return "AV1";
323
+#endif
324
else return "Unknown";
325
}
326
0 commit comments