OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
036b9ee
)
ac3enc: fix 'warning: block0 may be used uninitialized in this function'
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 29 Jan 2013 15:15:02 +0000
(16:15 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 29 Jan 2013 15:15:02 +0000
(16:15 +0100)
The pointer is also initialized to NULL for safety.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ac3enc_template.c
patch
|
blob
|
history
diff --git
a/libavcodec/ac3enc_template.c
b/libavcodec/ac3enc_template.c
index
904e0bb
..
b1174dc
100644
(file)
--- 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;