--- doc/APIchanges | 4 ++-- libavcodec/avcodec.h | 13 ------------- libavcodec/codec_id.h | 13 +++++++++++++ 3 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/doc/APIchanges b/doc/APIchanges index f8d01caa84..731d55f10d 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -15,8 +15,8 @@ libavutil: 2021-04-27 API changes, most recent first: 2021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h codec_id.h - Move av_get_bits_per_sample() and av_get_exact_bits_per_sample() - from avcodec.h to codec_id.h. + Move av_get_bits_per_sample(), av_get_exact_bits_per_sample(), + and avcodec_profile_name() from avcodec.h to codec_id.h. 2021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h defs.h Add new installed header defs.h. The following definitions are moved diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index cec4a0cb24..3787504ec3 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3064,19 +3064,6 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode); */ const char *av_get_profile_name(const AVCodec *codec, int profile); -/** - * Return a name for the specified profile, if available. - * - * @param codec_id the ID of the codec to which the requested profile belongs - * @param profile the profile value for which a name is requested - * @return A name for the profile if found, NULL otherwise. - * - * @note unlike av_get_profile_name(), which searches a list of profiles - * supported by a specific decoder or encoder implementation, this - * function searches the list of profiles from the AVCodecDescriptor - */ -const char *avcodec_profile_name(enum AVCodecID codec_id, int profile); - int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size); int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count); //FIXME func typedef diff --git a/libavcodec/codec_id.h b/libavcodec/codec_id.h index 6141268096..3b1a71f8ea 100644 --- a/libavcodec/codec_id.h +++ b/libavcodec/codec_id.h @@ -598,6 +598,19 @@ int av_get_bits_per_sample(enum AVCodecID codec_id); */ int av_get_exact_bits_per_sample(enum AVCodecID codec_id); +/** + * Return a name for the specified profile, if available. + * + * @param codec_id the ID of the codec to which the requested profile belongs + * @param profile the profile value for which a name is requested + * @return A name for the profile if found, NULL otherwise. + * + * @note unlike av_get_profile_name(), which searches a list of profiles + * supported by a specific decoder or encoder implementation, this + * function searches the list of profiles from the AVCodecDescriptor + */ +const char *avcodec_profile_name(enum AVCodecID codec_id, int profile); + /** * @} */ -- 2.30.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".