From a8068346e48e123f8d3bdf4d64464d81e53e5fc7 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 1 Jun 2014 09:38:22 +0200 Subject: lavc: add a variant of av_get_audio_frame_duration working with AVCodecParameters --- libavcodec/avcodec.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavcodec/avcodec.h') 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; -- cgit v1.2.3