Browse Source

avs: silence "may be used uninitialized" warnings

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>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
76e65a1b73
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/avs.c

+ 1
- 1
libavcodec/avs.c View 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");


Loading…
Cancel
Save