summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-06-01 09:38:22 +0200
committerAnton Khirnov <anton@khirnov.net>2016-02-23 17:01:58 +0100
commita8068346e48e123f8d3bdf4d64464d81e53e5fc7 (patch)
tree27c2797828824d73d307c97dd99c287ba0a51c4e /libavcodec/avcodec.h
parent998e1b8f521b73e1ed3a13caaabcf79eb401cf0d (diff)
lavc: add a variant of av_get_audio_frame_duration working with AVCodecParameters
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 4d6b2d0cb2..33de8ec409 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -4686,6 +4686,12 @@ int av_get_exact_bits_per_sample(enum AVCodecID codec_id);
*/
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);
+
typedef struct AVBitStreamFilterContext {
void *priv_data;