Cross compile opencv, FFMPEG is always NO, but its sub dependency is YES

Cross compile opencv, FFMPEG is always NO, but its sub dependency is YES,How can I solve this problem? It has been bothering me for a long time
OpenCV version:4.6.0
FFMPEG version:4.2.9
f0cdc313ede0550bf45f70d80bf12dd

Usually it means that test code failed to build (https://github.com/opencv/opencv/blob/4.x/cmake/checks/ffmpeg_test.cpp). You can find compile command and error message in <build>/CmakeFiles/CMakeError.log.