[FFmpeg-cvslog] avcodec/wavpack: initialize pointers to silence warning about them possibly being uninitialized

Michael Niedermayer git at videolan.org
Wed May 7 04:09:06 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed May  7 02:13:56 2014 +0200| [326463893beb5acbda1765a4854ec2fee3996bf3] | committer: Michael Niedermayer

avcodec/wavpack: initialize pointers to silence warning about them possibly being uninitialized

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=326463893beb5acbda1765a4854ec2fee3996bf3
---

 libavcodec/wavpack.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index 6f60514..a2d82e6 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -622,7 +622,7 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
     ThreadFrame tframe = { .f = frame };
     WavpackFrameContext *s;
     GetByteContext gb;
-    void *samples_l, *samples_r;
+    void *samples_l = NULL, *samples_r = NULL;
     int ret;
     int got_terms   = 0, got_weights = 0, got_samples = 0,
         got_entropy = 0, got_bs      = 0, got_float   = 0, got_hybrid = 0;



More information about the ffmpeg-cvslog mailing list