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 0143940ef3..c7d58e84c7 100644
--- a/libavfilter/af_volumedetect.c
+++ b/libavfilter/af_volumedetect.c
@@ -62,7 +62,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 = av_frame_get_channels(samples);
+ int nb_channels = samples->channels;
int nb_planes = nb_channels;
int plane, i;
int16_t *pcm;