Skip to content

Commit b6c62e4

Browse files
committed
Fixed support for NVIDIA Codec SDK 11.x
1 parent 01fd98d commit b6c62e4

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)