[FFmpeg-cvslog] ac3enc_template: silence may be used uninitialized in this function warnings

Michael Niedermayer git at videolan.org
Tue Feb 26 02:56:08 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Feb 26 02:32:44 2013 +0100| [f6fff8e54697ff4418283eb8aa9afd0d9e7e4736] | committer: Michael Niedermayer

ac3enc_template: silence may be used uninitialized in this function warnings

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/ac3enc_template.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/ac3enc_template.c b/libavcodec/ac3enc_template.c
index 18a849d..fb6aad9 100644
--- a/libavcodec/ac3enc_template.c
+++ b/libavcodec/ac3enc_template.c
@@ -133,7 +133,7 @@ static void apply_channel_coupling(AC3EncodeContext *s)
 #else
     int32_t (*fixed_cpl_coords)[AC3_MAX_CHANNELS][16] = cpl_coords;
 #endif
-    int blk, ch, bnd, i, j;
+    int av_uninit(blk), ch, bnd, i, j;
     CoefSumType energy[AC3_MAX_BLOCKS][AC3_MAX_CHANNELS][16] = {{{0}}};
     int cpl_start, num_cpl_coefs;
 



More information about the ffmpeg-cvslog mailing list