Commit bdcff5af authored by Michael Niedermayer's avatar Michael Niedermayer

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

Fixes: CID733841
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 989c91b5
...@@ -56,7 +56,7 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *samples) ...@@ -56,7 +56,7 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *samples)
int64_t layout = samples->audio->channel_layout; int64_t layout = samples->audio->channel_layout;
int nb_samples = samples->audio->nb_samples; int nb_samples = samples->audio->nb_samples;
int nb_channels = av_get_channel_layout_nb_channels(layout); int nb_channels = av_get_channel_layout_nb_channels(layout);
int nb_planes = nb_planes; int nb_planes = nb_channels;
int plane, i; int plane, i;
int16_t *pcm; int16_t *pcm;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment