avcodec/h264: Check mode before considering mixed mode intra prediction