Cuda error while handling decoding through ffmpeg

Command line Input -
/ffmpeg$ ./ffmpeg -y -vsync 0 -hwaccel nvdec -c:v h264_cuvid -i rtsp://viewer:admin7896@aftab.ddns.net:554/Streaming/channels/101 -f rawvideo -c:v h264_nvenc test.mp4

Output-
ffmpeg version N-101450-gc35e456f54 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --enable-nonfree --enable-cuda-nvcc --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
libavutil 56. 67.100 / 56. 67.100
libavcodec 58.129.100 / 58.129.100
libavformat 58. 71.100 / 58. 71.100
libavdevice 58. 12.100 / 58. 12.100
libavfilter 7.109.100 / 7.109.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
[h264 @ 0x558ed7d26880] reference picture missing during reorder
Last message repeated 1 times
[h264 @ 0x558ed7d26880] Missing reference picture, default is 2
Last message repeated 1 times
[h264 @ 0x558ed7d26880] concealing 1527 DC, 1527 AC, 1527 MV errors in P frame
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from ‘rtsp://viewer:admin7896@aftab.ddns.net:554/Streaming/channels/101’:
Metadata:
title : HIK Media Server V3.5.371
comment : HIK Media Server Session Description : standard
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1920x1080, 15 fps, 25 tbr, 90k tbn, 30 tbc
Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0:0#0:0 (h264 (h264_cuvid) → h264 (h264_nvenc))
Press [q] to stop, [?] for help
[h264_cuvid @ 0x558ed7d88ec0] AVHWFramesContext is already initialized with incompatible parameters
[h264_cuvid @ 0x558ed7d88ec0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed → CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library
[h264_cuvid @ 0x558ed7d88ec0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed → CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library
[h264_cuvid @ 0x558ed7d88ec0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed → CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library
[h264_cuvid @ 0x558ed7d88ec0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed → CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library
[h264_cuvid @ 0x558ed7d88ec0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed → CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library
[h264_cuvid @ 0x558ed7d88ec0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed → CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library
[h264_cuvid @ 0x558ed7d88ec0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed → CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library
[h264_cuvid @ 0x558ed7d88ec0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed → CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library
[h264_cuvid @ 0x558ed7d88ec0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed → CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library
[h264_cuvid @ 0x558ed7d88ec0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed → CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library
[h264_cuvid @ 0x558ed7d88ec0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed → CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library
[h264_cuvid @ 0x558ed7d88ec0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed → CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library
[h264_cuvid @ 0x558ed7d88ec0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed → CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library

Hello, this forum is dedicated to discussions related to using the sanitizer tools and API.
Questions related to CUDA can be raised at CUDA - NVIDIA Developer Forums