Commit 28f8114b authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/vp8: fix checking vp7_feature_value_size

Fixes CID1197061
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cdbd9e21
...@@ -555,7 +555,7 @@ static int vp7_decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_si ...@@ -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] = s->feature_index_prob[i][j] =
vp8_rac_get(c) ? vp8_rac_get_uint(c, 8) : 255; 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++) for (j = 0; j < 4; j++)
s->feature_value[i][j] = s->feature_value[i][j] =
vp8_rac_get(c) ? vp8_rac_get_uint(c, vp7_feature_value_size[s->profile][i]) : 0; vp8_rac_get(c) ? vp8_rac_get_uint(c, vp7_feature_value_size[s->profile][i]) : 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment