File fix-ffmpeg-profile-macros-compat.patch of Package deepin-screen-recorder
diff -Nur deepin-screen-recorder-6.6.7/3rdparty/libcam/libcam_encoder/audio_codecs.c deepin-screen-recorder-6.6.7-new/3rdparty/libcam/libcam_encoder/audio_codecs.c --- deepin-screen-recorder-6.6.7/3rdparty/libcam/libcam_encoder/audio_codecs.c 2025-09-18 20:10:53.000000000 +0800 +++ deepin-screen-recorder-6.6.7-new/3rdparty/libcam/libcam_encoder/audio_codecs.c 2025-10-09 23:05:27.279208741 +0800 @@ -36,6 +36,14 @@ #include "encoder.h" #include "load_libs.h" +#ifndef FF_PROFILE_UNKNOWN +#define FF_PROFILE_UNKNOWN AV_PROFILE_UNKNOWN +#define FF_PROFILE_AAC_MAIN AV_PROFILE_AAC_MAIN +#define FF_PROFILE_AAC_LOW AV_PROFILE_AAC_LOW +#define FF_PROFILE_AAC_SSR AV_PROFILE_AAC_SSR +#define FF_PROFILE_AAC_LTP AV_PROFILE_AAC_LTP +#endif + extern int verbosity; /* AAC object types index: MAIN = 1; LOW = 2; SSR = 3; LTP = 4*/