summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <[email protected]>2016-09-06 00:37:47 +0200
committerMichael Niedermayer <[email protected]>2016-09-06 12:36:28 +0200
commitdb3b93319dc806fa437215c9224d945e81083593 (patch)
tree408df29f152ea1a610efb045fa7e9fd466027607
parent3a3265899b869f0f1424d60f6b4f10b40d8cf9b0 (diff)
avfilter/af_atempo: Make independent of the channel layout
Reviewed-by: Paul B Mahol <[email protected]> Reviewed-by: Pavel Koshevoy <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r--libavfilter/af_atempo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/af_atempo.c b/libavfilter/af_atempo.c
index 7b3d57cceb..d5d29b3665 100644
--- a/libavfilter/af_atempo.c
+++ b/libavfilter/af_atempo.c
@@ -1044,9 +1044,8 @@ static int config_props(AVFilterLink *inlink)
enum AVSampleFormat format = inlink->format;
int sample_rate = (int)inlink->sample_rate;
- int channels = av_get_channel_layout_nb_channels(inlink->channel_layout);
- return yae_reset(atempo, format, sample_rate, channels);
+ return yae_reset(atempo, format, sample_rate, inlink->channels);
}
static int push_samples(ATempoContext *atempo,