From e72962fb42d6c01e963d6bb004b199041e8427ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sun, 5 Oct 2025 16:00:54 +0200 Subject: [PATCH] pw-cat: do not use deprecated `FF_PROFILE_*` These macros were deprecated in 2023[0], and are absent in the latest ffmpeg 8.0[1]. So use the new names. [0]: https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/8238bc0b5e3dba271217b1223a901b3f9713dc6e [1]: https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/822432769868da325ba03774df1084aa78b9a5a0 --- src/tools/pw-cat.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/tools/pw-cat.c b/src/tools/pw-cat.c index 6e9326642..cc1a3bda2 100644 --- a/src/tools/pw-cat.c +++ b/src/tools/pw-cat.c @@ -40,6 +40,15 @@ #include #include #include + +#ifndef AV_PROFILE_DTS_HD_MA +#define AV_PROFILE_DTS_HD_MA FF_PROFILE_DTS_HD_MA +#endif + +#ifndef AV_PROFILE_DTS_HD_HRA +#define AV_PROFILE_DTS_HD_HRA FF_PROFILE_DTS_HD_HRA +#endif + #endif #include "midifile.h" @@ -475,10 +484,10 @@ static int av_codec_params_to_audio_info(struct data *data, AVCodecParameters *c info->info.dts.rate = data->rate; info->info.dts.channels = data->channels; switch (codec_params->profile) { - case FF_PROFILE_DTS_HD_MA: + case AV_PROFILE_DTS_HD_MA: info->info.dts.ext_type = SPA_AUDIO_DTS_EXT_HD_MA; break; - case FF_PROFILE_DTS_HD_HRA: + case AV_PROFILE_DTS_HD_HRA: info->info.dts.ext_type = SPA_AUDIO_DTS_EXT_HD_HRA; break; default: