diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-06 17:02:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-06 18:10:47 +0200 |
commit | 28f8114bd240712e5c2a9b52df519858fccc267c (patch) | |
tree | 790a94611529af1b6b56102a242d64c5ce41c146 | |
parent | cdbd9e218d44d2bcf14f5e07894fa4f72a4696e2 (diff) | |
download | ffmpeg-28f8114bd240712e5c2a9b52df519858fccc267c.tar.gz |
avcodec/vp8: fix checking vp7_feature_value_size
Fixes CID1197061
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/vp8.c | 2 |
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; |