avcodec/x86/mpegenc: check IDCT permutation type is a valid value