diff mbox series

[FFmpeg-devel,04/25] lavc: move av_get_audio_frame_duration2() from avcodec.h to codec_par.h

Message ID 20210521180056.17496-4-anton@khirnov.net
State Accepted
Headers show
Series [FFmpeg-devel,01/25] lavc: move small misc definitions into a separate header | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Anton Khirnov May 21, 2021, 6 p.m. UTC
---
 doc/APIchanges         | 3 +++
 libavcodec/avcodec.h   | 6 ------
 libavcodec/codec_par.h | 5 +++++
 3 files changed, 8 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/doc/APIchanges b/doc/APIchanges
index 731d55f10d..540a0c8b4d 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -14,6 +14,9 @@  libavutil:     2021-04-27
 
 API changes, most recent first:
 
+2021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h codec_par.h
+  Move av_get_audio_frame_duration2() from avcodec.h to codec_par.h.
+
 2021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h 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.
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 3787504ec3..51caab7dce 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3129,12 +3129,6 @@  enum AVCodecID av_get_pcm_codec(enum AVSampleFormat fmt, int be);
  */
 int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes);
 
-/**
- * This function is the same as av_get_audio_frame_duration(), except it works
- * with AVCodecParameters instead of an AVCodecContext.
- */
-int av_get_audio_frame_duration2(AVCodecParameters *par, int frame_bytes);
-
 /* memory */
 
 /**
diff --git a/libavcodec/codec_par.h b/libavcodec/codec_par.h
index 948758e237..10cf79dff1 100644
--- a/libavcodec/codec_par.h
+++ b/libavcodec/codec_par.h
@@ -221,6 +221,11 @@  void avcodec_parameters_free(AVCodecParameters **par);
  */
 int avcodec_parameters_copy(AVCodecParameters *dst, const AVCodecParameters *src);
 
+/**
+ * This function is the same as av_get_audio_frame_duration(), except it works
+ * with AVCodecParameters instead of an AVCodecContext.
+ */
+int av_get_audio_frame_duration2(AVCodecParameters *par, int frame_bytes);
 
 /**
  * @}