diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-19 18:33:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-19 18:33:30 +0200 |
commit | d5fd610dabb4c7a6f63d4479e66c93c37339b6c0 (patch) | |
tree | 0a98bb4d8dd41b6a079d2bfb4a931b845efc6838 | |
parent | 8846115b1a5c29892fdf2c74747f71d37e16e864 (diff) | |
download | ffmpeg-d5fd610dabb4c7a6f63d4479e66c93c37339b6c0.tar.gz |
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: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/wmavoice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c index f6561d7035..0cf10da8c4 100644 --- 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 { |