af_volumedetect: fix use of uninitilaized variable in case of planar audio.

Fixes: CID733841
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-11 03:12:40 +02:00
parent 989c91b504
commit bdcff5af7f
1 changed files with 1 additions and 1 deletions

View 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;