amf: fix wrong profile level after auto-correction in H264 and HEVC