summaryrefslogtreecommitdiff
path: root/libavfilter/af_atempo.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/af_atempo.c')
-rw-r--r--libavfilter/af_atempo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_atempo.c b/libavfilter/af_atempo.c
index 7c922eb05f..adbc69b50c 100644
--- a/libavfilter/af_atempo.c
+++ b/libavfilter/af_atempo.c
@@ -1018,7 +1018,7 @@ static int config_props(AVFilterLink *inlink)
enum AVSampleFormat format = inlink->format;
int sample_rate = (int)inlink->sample_rate;
- return yae_reset(atempo, format, sample_rate, inlink->channels);
+ return yae_reset(atempo, format, sample_rate, inlink->ch_layout.nb_channels);
}
static int push_samples(ATempoContext *atempo,