diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 03:12:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 03:12:40 +0200 |
commit | bdcff5af7f08316a647f464ac90e7bb594551622 (patch) | |
tree | b03c9eecb0346f3d3467ce6c08de3ffc33371ef3 | |
parent | 989c91b5042c19c9914a3b205b1ca6e1598c66ba (diff) | |
download | ffmpeg-bdcff5af7f08316a647f464ac90e7bb594551622.tar.gz |
af_volumedetect: fix use of uninitilaized variable in case of planar audio.
Fixes: CID733841
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/af_volumedetect.c | 2 |
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; |