What's strange though is that the files do play albeit with a few glitches! Maybe they're not, the ones I'm playing, 10 bit files and it's something else?
It is the same with h.264 10bit files. The hardware decoder can make sense of some of the data (as it is similar in structure to 8bit encodings) and play it, but there will be artifacts when the 10bit encoded data values get interpreted as 8bit encoded: wrong colors, blocking and dropped frames when the decoder fails completely on a frame. This is why I am so happy that this wrong behaiviour has been changed in the latest S905 release so that kodi no longer uses hardware decoding on h.264 10bit files.