diff vp8data.h @ 12336:e84378ff89ca libavcodec

VP8: simplify token_prob handling ~1.5% faster decode_block_coeffs
author darkshikari
date Mon, 02 Aug 2010 05:20:38 +0000
parents 7db147ea02c4
children a18ab740d2db
line wrap: on
line diff
--- a/vp8data.h	Sun Aug 01 23:20:06 2010 +0000
+++ b/vp8data.h	Mon Aug 02 05:20:38 2010 +0000
@@ -314,9 +314,10 @@
      { -2, -3 },    // '10', '11'
 };
 
-static const uint8_t vp8_coeff_band[16] =
+/* Padded by one byte to allow overreads */
+static const uint8_t vp8_coeff_band[17] =
 {
-    0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7
+    0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0
 };
 
 static const uint8_t vp8_dct_cat1_prob[] = { 159, 0 };