aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-05-21 18:58:23 +0200
committerAnton Khirnov <anton@khirnov.net>2021-06-10 16:51:44 +0200
commitbb3648e6766fa3a3f323983f69b57c9b7821583c (patch)
treec2f8b84ffd08f74d357d14521bf5279aa7575214 /libavcodec
parent881db34f6a02be3a3a5aa56d8712cb1ecc9a7d13 (diff)
downloadffmpeg-bb3648e6766fa3a3f323983f69b57c9b7821583c.tar.gz
lavc: move av_get_audio_frame_duration2() from avcodec.h to codec_par.h
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h6
-rw-r--r--libavcodec/codec_par.h5
2 files changed, 5 insertions, 6 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index c30c035532..eed4e5b777 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3121,12 +3121,6 @@ void avcodec_flush_buffers(AVCodecContext *avctx);
*/
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);
/**
* @}