diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-29 16:15:02 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-29 16:15:02 +0100 |
commit | ebe368d5d82c368fec81ec4ddf216200e5008999 (patch) | |
tree | 197330917511447b1e6d09edc89fc725fe92f23b | |
parent | 036b9ee1c959d88d5ae7f1df21b2d36ab286b3cc (diff) | |
download | ffmpeg-ebe368d5d82c368fec81ec4ddf216200e5008999.tar.gz |
ac3enc: fix 'warning: block0 may be used uninitialized in this function'
The pointer is also initialized to NULL for safety.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/ac3enc_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc_template.c b/libavcodec/ac3enc_template.c index 904e0bb9ef..b1174dc219 100644 --- a/libavcodec/ac3enc_template.c +++ b/libavcodec/ac3enc_template.c @@ -336,7 +336,7 @@ static void compute_rematrixing_strategy(AC3EncodeContext *s) { int nb_coefs; int blk, bnd; - AC3Block *block, *block0; + AC3Block *block, *block0 = NULL; if (s->channel_mode != AC3_CHMODE_STEREO) return; |