git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68a3547
)
vp7: fix checking vp7_feature_value_size()
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 11 Nov 2014 12:27:00 +0000
(13:27 +0100)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Thu, 13 Nov 2014 00:41:25 +0000
(
01:41
+0100)
CC: libav-stable@libav.org
Bug-Id: CID
1197061
libavcodec/vp8.c
patch
|
blob
|
history
diff --git
a/libavcodec/vp8.c
b/libavcodec/vp8.c
index
0d2cab3
..
f437fee
100644
(file)
--- 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;