diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-02 14:57:41 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-07 00:39:02 +0200 |
commit | 8238bc0b5e3dba271217b1223a901b3f9713dc6e (patch) | |
tree | 2809c5b9d9b26042d584c92afeb76b059484c00f /libavcodec/audiotoolboxenc.c | |
parent | 0c6e5f321bf5c4054e8b98232692465b342b42b4 (diff) | |
download | ffmpeg-8238bc0b5e3dba271217b1223a901b3f9713dc6e.tar.gz |
avcodec/defs: Add AV_PROFILE_* defines, deprecate FF_PROFILE_* defines
These defines are also used in other contexts than just AVCodecContext
ones, e.g. in libavformat. Furthermore, given that these defines are
public, the AV-prefix is the right one, so deprecate (and not just move)
the FF-macros.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/audiotoolboxenc.c')
-rw-r--r-- | libavcodec/audiotoolboxenc.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libavcodec/audiotoolboxenc.c b/libavcodec/audiotoolboxenc.c index 46aca4c7ff..1b4e2a6c43 100644 --- a/libavcodec/audiotoolboxenc.c +++ b/libavcodec/audiotoolboxenc.c @@ -60,17 +60,17 @@ static UInt32 ffat_get_format_id(enum AVCodecID codec, int profile) switch (codec) { case AV_CODEC_ID_AAC: switch (profile) { - case FF_PROFILE_AAC_LOW: + case AV_PROFILE_AAC_LOW: default: return kAudioFormatMPEG4AAC; - case FF_PROFILE_AAC_HE: + case AV_PROFILE_AAC_HE: return kAudioFormatMPEG4AAC_HE; - case FF_PROFILE_AAC_HE_V2: + case AV_PROFILE_AAC_HE_V2: return kAudioFormatMPEG4AAC_HE_V2; - case FF_PROFILE_AAC_LD: + case AV_PROFILE_AAC_LD: return kAudioFormatMPEG4AAC_LD; #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 - case FF_PROFILE_AAC_ELD: + case AV_PROFILE_AAC_ELD: return kAudioFormatMPEG4AAC_ELD; #endif } @@ -586,12 +586,12 @@ static av_cold int ffat_close_encoder(AVCodecContext *avctx) } static const AVProfile aac_profiles[] = { - { FF_PROFILE_AAC_LOW, "LC" }, - { FF_PROFILE_AAC_HE, "HE-AAC" }, - { FF_PROFILE_AAC_HE_V2, "HE-AACv2" }, - { FF_PROFILE_AAC_LD, "LD" }, - { FF_PROFILE_AAC_ELD, "ELD" }, - { FF_PROFILE_UNKNOWN }, + { AV_PROFILE_AAC_LOW, "LC" }, + { AV_PROFILE_AAC_HE, "HE-AAC" }, + { AV_PROFILE_AAC_HE_V2, "HE-AACv2" }, + { AV_PROFILE_AAC_LD, "LD" }, + { AV_PROFILE_AAC_ELD, "ELD" }, + { AV_PROFILE_UNKNOWN }, }; #define AE AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |