NEDEC How to reduce latency when decoding HEVC?

I have set CUVID_PKT_ENDOFPICTURE when init decoder。It can save 1 frame of latency when decoding h264, but there is 1frame of latency when decoding hevc(h265).
How can i save latency?