I used the decoder SDK to create DirectShow decoder. I have written a lot of filters including other encoders and decoders using various SDKs so I (more or less) know my way around. My decoder generally works great except when I try to seek while playing a file. After a seek I deliver a set of frames starting with the previous KEY and followed by 0 or more DELTAs to get to the target frame - I also set PREROLL on all but the last frame but that’s not something NVDEC cares about. I set CUVID_PKT_DISCONTINUITY on the first frame. This works with all my other decoders including some 3rd party ones but not with my NVIDIA hardware decoder. I get garbled video - exactly as if I were delivering out of sequence DELTA frames. If I hit PLAY after this it will show a few more garbled frames then as soon as it hits the next KEY frame it resumes playing OK.
So it behaves as if its not getting that initial KEY frame.
Is there some additional magic spell I need to use in addition to setting the DISCONTINUITY flag?