avfilter/af_atempo: Make independent of the channel layout

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: Pavel Koshevoy <pkoshevoy@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-09-06 00:37:47 +02:00
parent 3a3265899b
commit db3b93319d
1 changed files with 1 additions and 2 deletions

View File

@ -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,