Browse Source

vp7: fix checking vp7_feature_value_size()

CC: libav-stable@libav.org
Bug-Id: CID 1197061
(cherry picked from commit 29234f56818135faf2f1868ab324c073abd28fbd)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n2.4.7
Michael Niedermayer Luca Barbato 11 years ago
parent
commit
ff77fa754b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vp8.c

+ 1
- 1
libavcodec/vp8.c View File

@@ -529,7 +529,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;


Loading…
Cancel
Save