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

Function swr_get_delay

libswresample/swresample.c:879–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

877}
878
879int64_t swr_get_delay(struct SwrContext *s, int64_t base){
880 if (s->resampler && s->resample){
881 return s->resampler->get_delay(s, base);
882 }else{
883 return (s->in_buffer_count*base + (s->in_sample_rate>>1))/ s->in_sample_rate;
884 }
885}
886
887int swr_get_out_samples(struct SwrContext *s, int in_samples)
888{

Callers 5

swr_convert_frameFunction · 0.85
swr_next_ptsFunction · 0.85
filter_frameFunction · 0.85
write_audio_frameFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected