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

Michael Niedermayer michael at niedermayer.cc
Tue Sep 6 13:14:18 EEST 2016


On Mon, Sep 05, 2016 at 10:25:47PM -0600, Pavel Koshevoy wrote:
> On Sep 5, 2016 4:41 PM, "Michael Niedermayer" <michael at niedermayer.cc>
> wrote:
> >
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >  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,
> > --
> > 2.9.3
> 
> 
> Looks good to me,

applied

thx to all

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have never wished to cater to the crowd; for what I know they do not
approve, and what they approve I do not know. -- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160906/069e960a/attachment.sig>


More information about the ffmpeg-devel mailing list