avcodec/mss2: initialise wmv9_mask variable

initialised to -1 which indicates wmv9 mask not present
pull/388/head
Peter Ross 2 years ago
parent d772419237
commit db77483363
  1. 2
      libavcodec/mss2.c

@ -519,7 +519,7 @@ static int mss2_decode_frame(AVCodecContext *avctx, AVFrame *frame,
struct Rectangle wmv9rects[MAX_WMV9_RECTANGLES], *r;
struct Rectangle2 draw;
int used_rects = 0, i, implicit_rect = 0, av_uninit(wmv9_mask);
int used_rects = 0, i, implicit_rect = 0, wmv9_mask = -1;
if ((ret = init_get_bits8(&gb, buf, buf_size)) < 0)
return ret;

Loading…
Cancel
Save