Commit db3b9331 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/af_atempo: Make independent of the channel layout

Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Reviewed-by: 's avatarPavel Koshevoy <pkoshevoy@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 3a326589
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment