Finally something I can reproduce here! It's really hard to work blindly.
The problem is in DXVA somewhere.
A quick fix for your SD files, open the settings menu (the cog wheel on the top left corner), go to player settings and change renderer method from AUTO to Pixel Shader.
Colors will be correct.
For HDR, the user @
_DMU_ has been of great help testing several builds and this is the situation.
It is 100% a bug in AMD drivers. It affects both Ryzen and the 5700 series.
You can read people discussing it here:
https://forum.doom9.org/showthread.php?t=176013&page=48
The situation is that metadata is passed flawlessly, HDR flag is OK, but the BT.2020 flag does not show up.
So dessaturated colors.
The workaround is turning Windows HDR toggle to On.
You can do this before opening kodi, just going into Windows Display settings, turning it on and colors will be correct.
This is not a good solution for the end user so I can make it automatic BUT.... and a huge but..
The code we have to turn HDR on will default the refresh rate back to 60hz.
So this will kill 23hz playback.
The other possible solution is that I can create a shortcut like CTRL+H and this will toggle HDR on and OFF... but... you will have to enable it before starting the movie.
If you turn it while the movie is playing it will default back to 60hz.
That windows toggle freaking sucks.. because you can't turn it automatically before the playback starts because there's no data to know which video is HDR or not.
You can't toggle it durring playback or else it will put your display back to 60hz.
So, it's
to me impossible with what I know, probably someone more experienced could comeup with a solution but this is the best I can provide to fix for Ryzen iGPUs.