H265 supports 16 reference frames too. Fixes validation errors when decoding H265 stream with more than 8 reference frames. Cc: mesa-stable