Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-06 19:02:09 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-04-06 20:10:47 +0400
commit28f8114bd240712e5c2a9b52df519858fccc267c (patch)
tree790a94611529af1b6b56102a242d64c5ce41c146 /libavcodec/vp8.c
parentcdbd9e218d44d2bcf14f5e07894fa4f72a4696e2 (diff)
avcodec/vp8: fix checking vp7_feature_value_size
Fixes CID1197061 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 22a1993312..472029dcf3 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -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;