[FFmpeg-cvslog] lavfi/asetnsamples: unbreak for >8 channels
Paul B Mahol
git at videolan.org
Sun Jul 14 00:00:11 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jul 13 21:59:13 2013 +0000| [729709b8904c4bcc3dc4747bdcf9a5f2bfc73e4a] | committer: Paul B Mahol
lavfi/asetnsamples: unbreak for >8 channels
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=729709b8904c4bcc3dc4747bdcf9a5f2bfc73e4a
---
libavfilter/af_asetnsamples.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavfilter/af_asetnsamples.c b/libavfilter/af_asetnsamples.c
index 25e062a..e4c77ab 100644
--- a/libavfilter/af_asetnsamples.c
+++ b/libavfilter/af_asetnsamples.c
@@ -73,9 +73,8 @@ static av_cold void uninit(AVFilterContext *ctx)
static int config_props_output(AVFilterLink *outlink)
{
ASNSContext *asns = outlink->src->priv;
- int nb_channels = av_get_channel_layout_nb_channels(outlink->channel_layout);
- asns->fifo = av_audio_fifo_alloc(outlink->format, nb_channels, asns->nb_out_samples);
+ asns->fifo = av_audio_fifo_alloc(outlink->format, outlink->channels, asns->nb_out_samples);
if (!asns->fifo)
return AVERROR(ENOMEM);
outlink->flags |= FF_LINK_FLAG_REQUEST_LOOP;
@@ -109,7 +108,7 @@ static int push_samples(AVFilterLink *outlink)
if (nb_pad_samples)
av_samples_set_silence(outsamples->extended_data, nb_out_samples - nb_pad_samples,
- nb_pad_samples, av_get_channel_layout_nb_channels(outlink->channel_layout),
+ nb_pad_samples, outlink->channels,
outlink->format);
outsamples->nb_samples = nb_out_samples;
outsamples->channel_layout = outlink->channel_layout;
More information about the ffmpeg-cvslog
mailing list