[FFmpeg-cvslog] avfilter/af_atempo: Make independent of the channel layout

Michael Niedermayer git at videolan.org
Tue Sep 6 13:40:32 EEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue Sep  6 00:37:47 2016 +0200| [db3b93319dc806fa437215c9224d945e81083593] | committer: Michael Niedermayer

avfilter/af_atempo: Make independent of the channel layout

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Reviewed-by: Pavel Koshevoy <pkoshevoy at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=db3b93319dc806fa437215c9224d945e81083593
---

 libavfilter/af_atempo.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavfilter/af_atempo.c b/libavfilter/af_atempo.c
index 7b3d57c..d5d29b3 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,



More information about the ffmpeg-cvslog mailing list