MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / av_get_audio_frame_duration

Function av_get_audio_frame_duration

libavcodec/utils.c:803–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801}
802
803int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
804{
805 int channels = avctx->ch_layout.nb_channels;
806 int duration;
807
808 duration = get_audio_frame_duration(avctx->codec_id, avctx->sample_rate,
809 channels, avctx->block_align,
810 avctx->codec_tag, avctx->bits_per_coded_sample,
811 avctx->bit_rate, avctx->extradata, avctx->frame_size,
812 frame_bytes);
813 return FFMAX(0, duration);
814}
815
816int av_get_audio_frame_duration2(AVCodecParameters *par, int frame_bytes)
817{

Callers 1

compute_frame_durationFunction · 0.85

Calls 1

get_audio_frame_durationFunction · 0.85

Tested by

no test coverage detected