summaryrefslogtreecommitdiff
path: root/libavfilter/af_volumedetect.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/af_volumedetect.c')
-rw-r--r--libavfilter/af_volumedetect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_volumedetect.c b/libavfilter/af_volumedetect.c
index 486fccc4e9..ebfad6914f 100644
--- a/libavfilter/af_volumedetect.c
+++ b/libavfilter/af_volumedetect.c
@@ -38,7 +38,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *samples)
AVFilterContext *ctx = inlink->dst;
VolDetectContext *vd = ctx->priv;
int nb_samples = samples->nb_samples;
- int nb_channels = samples->channels;
+ int nb_channels = samples->ch_layout.nb_channels;
int nb_planes = nb_channels;
int plane, i;
int16_t *pcm;