[FFmpeg-cvslog] af_volumedetect: fix use of uninitilaized variable in case of planar audio.
Michael Niedermayer
git at videolan.org
Thu Oct 11 03:38:53 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 11 03:12:40 2012 +0200| [bdcff5af7f08316a647f464ac90e7bb594551622] | committer: Michael Niedermayer
af_volumedetect: fix use of uninitilaized variable in case of planar audio.
Fixes: CID733841
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bdcff5af7f08316a647f464ac90e7bb594551622
---
libavfilter/af_volumedetect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/af_volumedetect.c b/libavfilter/af_volumedetect.c
index caf8559..9bc40f6 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;
More information about the ffmpeg-cvslog
mailing list