mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
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]:8238bc0b5e[1]:8224327698
This commit is contained in:
parent
e9aef9196f
commit
e72962fb42
1 changed files with 11 additions and 2 deletions
|
|
@ -40,6 +40,15 @@
|
||||||
#include <libavformat/avformat.h>
|
#include <libavformat/avformat.h>
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#include <libavutil/log.h>
|
#include <libavutil/log.h>
|
||||||
|
|
||||||
|
#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
|
#endif
|
||||||
|
|
||||||
#include "midifile.h"
|
#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.rate = data->rate;
|
||||||
info->info.dts.channels = data->channels;
|
info->info.dts.channels = data->channels;
|
||||||
switch (codec_params->profile) {
|
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;
|
info->info.dts.ext_type = SPA_AUDIO_DTS_EXT_HD_MA;
|
||||||
break;
|
break;
|
||||||
case FF_PROFILE_DTS_HD_HRA:
|
case AV_PROFILE_DTS_HD_HRA:
|
||||||
info->info.dts.ext_type = SPA_AUDIO_DTS_EXT_HD_HRA;
|
info->info.dts.ext_type = SPA_AUDIO_DTS_EXT_HD_HRA;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue