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:
8846115
)
wmavoice: initialize best_hist_ptr to NULL to prevent (incorrect) warning.
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 19 Sep 2012 16:33:30 +0000
(18:33 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 19 Sep 2012 16:33:30 +0000
(18:33 +0200)
As a sideeffect this makes the code more robust if a future change leaves
a path where it may be uninitialized otherwise.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wmavoice.c
patch
|
blob
|
history
diff --git
a/libavcodec/wmavoice.c
b/libavcodec/wmavoice.c
index
f6561d7
..
0cf10da
100644
(file)
--- a/
libavcodec/wmavoice.c
+++ b/
libavcodec/wmavoice.c
@@
-515,7
+515,7
@@
static int kalman_smoothen(WMAVoiceContext *s, int pitch,
float optimal_gain = 0, dot;
const float *ptr = &in[-FFMAX(s->min_pitch_val, pitch - 3)],
*end = &in[-FFMIN(s->max_pitch_val, pitch + 3)],
- *best_hist_ptr;
+ *best_hist_ptr
= NULL
;
/* find best fitting point in history */
do {