[FFmpeg-cvslog] lavfi/aphaser: silence uninitialized variable warnings.

Clément Bœsch git at videolan.org
Mon Apr 15 01:20:47 CEST 2013


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Mon Apr 15 01:12:26 2013 +0200| [da1bb21c13024d5c2d28432a7b1a6bb72e38ef58] | committer: Clément Bœsch

lavfi/aphaser: silence uninitialized variable warnings.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da1bb21c13024d5c2d28432a7b1a6bb72e38ef58
---

 libavfilter/af_aphaser.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/af_aphaser.c b/libavfilter/af_aphaser.c
index 5f7b9d6..b1043b0 100644
--- a/libavfilter/af_aphaser.c
+++ b/libavfilter/af_aphaser.c
@@ -186,6 +186,7 @@ static void phaser_## name ##p(AudioPhaserContext *p,                  \
 {                                                                      \
     int i, c, delay_pos, modulation_pos;                               \
                                                                        \
+    av_assert0(channels > 0);                                          \
     for (c = 0; c < channels; c++) {                                   \
         type *s = (type *)src[c];                                      \
         type *d = (type *)dst[c];                                      \



More information about the ffmpeg-cvslog mailing list