Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: Pavel Koshevoy <pkoshevoy@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
... | ... |
@@ -1044,9 +1044,8 @@ static int config_props(AVFilterLink *inlink) |
1044 | 1044 |
|
1045 | 1045 |
enum AVSampleFormat format = inlink->format; |
1046 | 1046 |
int sample_rate = (int)inlink->sample_rate; |
1047 |
- int channels = av_get_channel_layout_nb_channels(inlink->channel_layout); |
|
1048 | 1047 |
|
1049 |
- return yae_reset(atempo, format, sample_rate, channels); |
|
1048 |
+ return yae_reset(atempo, format, sample_rate, inlink->channels); |
|
1050 | 1049 |
} |
1051 | 1050 |
|
1052 | 1051 |
static int push_samples(ATempoContext *atempo, |