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 /libavformat/hlsenc.c | |
parent | 0c6e5f321bf5c4054e8b98232692465b342b42b4 (diff) |
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 'libavformat/hlsenc.c')
-rw-r--r-- | libavformat/hlsenc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 004bd25359..12e20580ee 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -39,7 +39,7 @@ #include "libavutil/time.h" #include "libavutil/time_internal.h" -#include "libavcodec/avcodec.h" +#include "libavcodec/defs.h" #include "avformat.h" #include "avio_internal.h" @@ -369,12 +369,12 @@ static void write_codec_attr(AVStream *st, VariantStream *vs) } } else if (st->codecpar->codec_id == AV_CODEC_ID_HEVC) { uint8_t *data = st->codecpar->extradata; - int profile = FF_PROFILE_UNKNOWN; - int level = FF_LEVEL_UNKNOWN; + int profile = AV_PROFILE_UNKNOWN; + int level = AV_LEVEL_UNKNOWN; - if (st->codecpar->profile != FF_PROFILE_UNKNOWN) + if (st->codecpar->profile != AV_PROFILE_UNKNOWN) profile = st->codecpar->profile; - if (st->codecpar->level != FF_LEVEL_UNKNOWN) + if (st->codecpar->level != AV_LEVEL_UNKNOWN) level = st->codecpar->level; /* check the boundary of data which from current position is small than extradata_size */ @@ -407,8 +407,8 @@ static void write_codec_attr(AVStream *st, VariantStream *vs) data++; } if (st->codecpar->codec_tag == MKTAG('h','v','c','1') && - profile != FF_PROFILE_UNKNOWN && - level != FF_LEVEL_UNKNOWN) { + profile != AV_PROFILE_UNKNOWN && + level != AV_LEVEL_UNKNOWN) { snprintf(attr, sizeof(attr), "%s.%d.4.L%d.B01", av_fourcc2str(st->codecpar->codec_tag), profile, level); } else goto fail; |