Improve h265 profile getting in pbutils
The h265 profile getting manner now is not very correct. The profile idc should play an more important role in recognizing the profile than the other information. And there is no need to mix profiles of different extensions together to find the closest profile when the bits stream is not standard, different extensions support different features and should not be mixed.
The correct way should be recognize the extension category by profile idc firstly, and then find the closest profile.
Edited by He Junyan