diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-06-01 09:38:22 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-02-23 17:01:58 +0100 |
commit | a8068346e48e123f8d3bdf4d64464d81e53e5fc7 (patch) | |
tree | 27c2797828824d73d307c97dd99c287ba0a51c4e /libavcodec/avcodec.h | |
parent | 998e1b8f521b73e1ed3a13caaabcf79eb401cf0d (diff) | |
download | ffmpeg-streaming-a8068346e48e123f8d3bdf4d64464d81e53e5fc7.zip ffmpeg-streaming-a8068346e48e123f8d3bdf4d64464d81e53e5fc7.tar.gz |
lavc: add a variant of av_get_audio_frame_duration working with AVCodecParameters
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 4d6b2d0..33de8ec 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; |