Skip to content

Commit 1231b20

Browse files
authored
Merge pull request #4012 from asmorkalov:as/older_codec_sdk
Fixed support for NVIDIA Codec SDK 11.x
2 parents de21064 + b6c62e4 commit 1231b20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/cudacodec/src/video_writer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,9 @@ GUID EncodingPresetGuid(const EncodePreset nvPreset) {
318318
std::string GetVideoCodecString(const GUID codec) {
319319
if (codec == NV_ENC_CODEC_H264_GUID) return "AVC/H.264";
320320
else if (codec == NV_ENC_CODEC_HEVC_GUID) return "H.265/HEVC";
321+
#if (NVENCAPI_MAJOR_VERSION >= 12)
321322
else if (codec == NV_ENC_CODEC_AV1_GUID) return "AV1";
323+
#endif
322324
else return "Unknown";
323325
}
324326

0 commit comments

Comments
 (0)