as Nvidia RTX 50xx series has new option for hardware decoding of AV1 format, I upgraded line in build-ffmpeg:
-    if build "nv-codec" "11.1.5.3"; then
to:
+    if build "nv-codec" "13.0.19.0"; then
and
-      export CUDA_COMPUTE_CAPABILITY=52
to:
+      export CUDA_COMPUTE_CAPABILITY=120
assuming CUDA 13 installed
which compiled successfully. Now is possible to use hardware decoding of AV1 format with option -vcodec av1_cuvid
example: ffplay -i 'av1codec.mkv' -vcodec av1_cuvid
p.s. if you have already compiled with older version, remove lock file nv-codec.done