libavcodec/hevc.c:276: error: Uninitialized Value
  The value read from luma_weight_l0_flag[_] was never initialized.

libavcodec/hevc.c:276:13: 
274.     }
275.     for (i = 0; i < s->sh.nb_refs[L0]; i++) {
276.         if (luma_weight_l0_flag[i]) {
                 ^
277.             int delta_luma_weight_l0 = get_se_golomb(gb);
278.             s->sh.luma_weight_l0[i] = (1 << s->sh.luma_log2_weight_denom) + delta_luma_weight_l0;
