[FFmpeg-devel] [PATCH] avfilter/af_volumedetect: Remove dependency on channel layout
Michael Niedermayer
michael at niedermayer.cc
Mon Sep 5 22:42:31 EEST 2016
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavfilter/af_volumedetect.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavfilter/af_volumedetect.c b/libavfilter/af_volumedetect.c
index 4815bcc..c6a6dba 100644
--- a/libavfilter/af_volumedetect.c
+++ b/libavfilter/af_volumedetect.c
@@ -51,9 +51,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *samples)
{
AVFilterContext *ctx = inlink->dst;
VolDetectContext *vd = ctx->priv;
- int64_t layout = samples->channel_layout;
int nb_samples = samples->nb_samples;
- int nb_channels = av_get_channel_layout_nb_channels(layout);
+ int nb_channels = av_frame_get_channels(samples);
int nb_planes = nb_channels;
int plane, i;
int16_t *pcm;
--
2.9.3
More information about the ffmpeg-devel
mailing list