avcodec/vp8: fix checking vp7_feature_value_size
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 6 Apr 2014 15:02:09 +0000 (17:02 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 6 Apr 2014 16:10:47 +0000 (18:10 +0200)
Fixes CID1197061

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

index 22a1993..472029d 100644 (file)
@@ -555,7 +555,7 @@ static int vp7_decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_si
                  s->feature_index_prob[i][j] =
                      vp8_rac_get(c) ? vp8_rac_get_uint(c, 8) : 255;
 
-             if (vp7_feature_value_size[i])
+             if (vp7_feature_value_size[s->profile][i])
                  for (j = 0; j < 4; j++)
                      s->feature_value[i][j] =
                         vp8_rac_get(c) ? vp8_rac_get_uint(c, vp7_feature_value_size[s->profile][i]) : 0;