[FFmpeg-cvslog] avcodec/vp8: fix checking vp7_feature_value_size
Michael Niedermayer
git at videolan.org
Sun Apr 6 18:24:45 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Apr 6 17:02:09 2014 +0200| [28f8114bd240712e5c2a9b52df519858fccc267c] | committer: Michael Niedermayer
avcodec/vp8: fix checking vp7_feature_value_size
Fixes CID1197061
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=28f8114bd240712e5c2a9b52df519858fccc267c
---
libavcodec/vp8.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index 22a1993..472029d 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;
More information about the ffmpeg-cvslog
mailing list