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/utils.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/utils.c')
-rw-r--r-- | libavcodec/utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index d54e050848..3cb3828228 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -434,10 +434,10 @@ const char *avcodec_get_name(enum AVCodecID id) const char *av_get_profile_name(const AVCodec *codec, int profile) { const AVProfile *p; - if (profile == FF_PROFILE_UNKNOWN || !codec->profiles) + if (profile == AV_PROFILE_UNKNOWN || !codec->profiles) return NULL; - for (p = codec->profiles; p->profile != FF_PROFILE_UNKNOWN; p++) + for (p = codec->profiles; p->profile != AV_PROFILE_UNKNOWN; p++) if (p->profile == profile) return p->name; @@ -449,10 +449,10 @@ const char *avcodec_profile_name(enum AVCodecID codec_id, int profile) const AVCodecDescriptor *desc = avcodec_descriptor_get(codec_id); const AVProfile *p; - if (profile == FF_PROFILE_UNKNOWN || !desc || !desc->profiles) + if (profile == AV_PROFILE_UNKNOWN || !desc || !desc->profiles) return NULL; - for (p = desc->profiles; p->profile != FF_PROFILE_UNKNOWN; p++) + for (p = desc->profiles; p->profile != AV_PROFILE_UNKNOWN; p++) if (p->profile == profile) return p->name; |