avs: silence "may be used uninitialized" warnings
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 29 Dec 2012 01:42:30 +0000 (02:42 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 29 Dec 2012 02:07:45 +0000 (03:07 +0100)
We initialize the struct to 0 to also ensure any actual use of
the pointers in it will not lead to security issues.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/avs.c

index 0881d74..39ce7da 100644 (file)
@@ -57,7 +57,7 @@ avs_decode_frame(AVCodecContext * avctx,
     int i, j, x, y, stride, vect_w = 3, vect_h = 3;
     AvsVideoSubType sub_type;
     AvsBlockType type;
-    GetBitContext change_map;
+    GetBitContext change_map = {0}; //init to silence warning
 
     if (avctx->reget_buffer(avctx, p)) {
         av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");