diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-11 13:27:00 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-01-13 00:16:42 +0100 |
commit | ff77fa754bf2d6e7231d2e050babefa9a13d1fec (patch) | |
tree | ebe8390629113dbbacdc265d3e689f9ec26aae43 /libavcodec | |
parent | 431f57f0467244686ae63a3d06a8cf51f60090ed (diff) | |
download | ffmpeg-ff77fa754bf2d6e7231d2e050babefa9a13d1fec.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-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 ce9d3cfba4..63c0ce7dfd 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; |