diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-24 19:39:31 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-24 20:12:18 +0100 |
commit | 870a8f097a73eaefe415f6db6f3308f708cb43a9 (patch) | |
tree | dbc369d81bf9b9bcd1ece738f6cfc2599b929c42 | |
parent | 9dc60f4fba38b867f724d8007ba43d20e2f93cbe (diff) |
avcodec/h264_parse: Move ff_h264_get_profile() to h264_ps.h
It is a more fitting place for it.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/h264_parse.h | 5 | ||||
-rw-r--r-- | libavcodec/h264_ps.h | 5 | ||||
-rw-r--r-- | libavcodec/mediacodecdec.c | 1 |
3 files changed, 6 insertions, 5 deletions
diff --git a/libavcodec/h264_parse.h b/libavcodec/h264_parse.h index 3901b46ac2..4b79bd63eb 100644 --- a/libavcodec/h264_parse.h +++ b/libavcodec/h264_parse.h @@ -124,11 +124,6 @@ int ff_h264_decode_extradata(const uint8_t *data, int size, H264ParamSets *ps, int *is_avc, int *nal_length_size, int err_recognition, void *logctx); -/** - * compute profile from sps - */ -int ff_h264_get_profile(const SPS *sps); - static av_always_inline uint32_t pack16to32(unsigned a, unsigned b) { #if HAVE_BIGENDIAN diff --git a/libavcodec/h264_ps.h b/libavcodec/h264_ps.h index 3f1ab72e38..dc52835ed4 100644 --- a/libavcodec/h264_ps.h +++ b/libavcodec/h264_ps.h @@ -153,6 +153,11 @@ typedef struct H264ParamSets { } H264ParamSets; /** + * compute profile from sps + */ +int ff_h264_get_profile(const SPS *sps); + +/** * Decode SPS */ int ff_h264_decode_seq_parameter_set(GetBitContext *gb, AVCodecContext *avctx, diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c index 04d5026e68..e8af00ec00 100644 --- a/libavcodec/mediacodecdec.c +++ b/libavcodec/mediacodecdec.c @@ -33,6 +33,7 @@ #include "avcodec.h" #include "decode.h" #include "h264_parse.h" +#include "h264_ps.h" #include "hevc_parse.h" #include "hwconfig.h" #include "internal.h" |