Working THP frame decoding