af_volumedetect: fix use of uninitilaized variable in case of planar audio.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Oct 2012 01:12:40 +0000 (03:12 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Oct 2012 01:12:40 +0000 (03:12 +0200)
Fixes: CID733841
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/af_volumedetect.c

index caf8559..9bc40f6 100644 (file)
@@ -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;