summaryrefslogtreecommitdiff
path: root/libavcodec/vp8data.h
diff options
context:
space:
mode:
authorJason Garrett-Glaser <darkshikari@gmail.com>2010-08-02 22:48:38 +0000
committerJason Garrett-Glaser <darkshikari@gmail.com>2010-08-02 22:48:38 +0000
commit370b622a45b5d5302eed0be8d4d66e29cc8fd8e9 (patch)
treea7f70ef45296ffdff8cb0b1036fe6193b8017d35 /libavcodec/vp8data.h
parentf311208cf1ebbd74f8a3bd111d9172f41188aa83 (diff)
VP8: eliminate a dereference in coefficient decoding
Originally committed as revision 24671 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp8data.h')
-rw-r--r--libavcodec/vp8data.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/vp8data.h b/libavcodec/vp8data.h
index 67e8ef3f47..28cc0b3403 100644
--- a/libavcodec/vp8data.h
+++ b/libavcodec/vp8data.h
@@ -314,10 +314,9 @@ static const int8_t vp8_segmentid_tree[][2] =
{ -2, -3 }, // '10', '11'
};
-/* Padded by one byte to allow overreads */
-static const uint8_t vp8_coeff_band[17] =
+static const uint8_t vp8_coeff_band[16] =
{
- 0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0
+ 0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7
};
static const uint8_t vp8_dct_cat1_prob[] = { 159, 0 };