summaryrefslogtreecommitdiff
path: root/libavfilter/af_volumedetect.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-11 03:12:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-11 03:12:40 +0200
commitbdcff5af7f08316a647f464ac90e7bb594551622 (patch)
treeb03c9eecb0346f3d3467ce6c08de3ffc33371ef3 /libavfilter/af_volumedetect.c
parent989c91b5042c19c9914a3b205b1ca6e1598c66ba (diff)
af_volumedetect: fix use of uninitilaized variable in case of planar audio.
Fixes: CID733841 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 caf8559889..9bc40f65c7 100644
--- a/libavfilter/af_volumedetect.c
+++ b/libavfilter/af_volumedetect.c
@@ -56,7 +56,7 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *samples)
int64_t layout = samples->audio->channel_layout;
int nb_samples = samples->audio->nb_samples;
int nb_channels = av_get_channel_layout_nb_channels(layout);
- int nb_planes = nb_planes;
+ int nb_planes = nb_channels;
int plane, i;
int16_t *pcm;