summaryrefslogtreecommitdiff
path: root/libavcodec/vp8.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-11 13:27:00 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-13 01:41:25 +0100
commit29234f56818135faf2f1868ab324c073abd28fbd (patch)
treedd7172738026199832db1397fcea5b9d9c4ba9c6 /libavcodec/vp8.c
parent68a35473ed423a14731c418939fba7913647979a (diff)
downloadffmpeg-29234f56818135faf2f1868ab324c073abd28fbd.tar.gz
vp7: fix checking vp7_feature_value_size()
CC: libav-stable@libav.org Bug-Id: CID 1197061
Diffstat (limited to 'libavcodec/vp8.c')
-rw-r--r--libavcodec/vp8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index 0d2cab31ff..f437feec33 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -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] =
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;