Backport of "nvh264dec,nvh265dec: Fix broken key-unit trick and reverse playback" into 1.20
Backport of !1911 (merged) "nvh264dec,nvh265dec: Fix broken key-unit trick and reverse playback".
Commits:
- 5d298b98 nvh264dec,nvh265dec: Fix broken key-unit trick and reverse playback