HEVC parser issues with certain resolutions


I’m using the NVCUVID library to implement a decoder. Following the documentation, I’m calling the cuvidParseVideoData and it calls my DecodePicture function. I’m changing the resolution during runtime and use decoder reconfiguration for this. However for certain resolutions like 424x240, after reconfiguration is successful, cuvidDecodePicture returns CUDA_ERROR_INVALID_VALUE. I don’t have the issue when creating the decoder with 420x242, only when reconfiguring it from another resolution. Additionally, I don’t have the issue with H.264 decoder and with other resolutions that I try. Can there be an issue with the video data parser?