Commit d5fd610d authored by Michael Niedermayer's avatar Michael Niedermayer

wmavoice: initialize best_hist_ptr to NULL to prevent (incorrect) warning.

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8846115b
...@@ -515,7 +515,7 @@ static int kalman_smoothen(WMAVoiceContext *s, int pitch, ...@@ -515,7 +515,7 @@ static int kalman_smoothen(WMAVoiceContext *s, int pitch,
float optimal_gain = 0, dot; float optimal_gain = 0, dot;
const float *ptr = &in[-FFMAX(s->min_pitch_val, pitch - 3)], const float *ptr = &in[-FFMAX(s->min_pitch_val, pitch - 3)],
*end = &in[-FFMIN(s->max_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 */ /* find best fitting point in history */
do { do {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment