summaryrefslogtreecommitdiff
path: root/libavcodec/cabac.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-08-11 12:12:43 +0200
committerAnton Khirnov <anton@khirnov.net>2013-09-24 17:13:17 +0200
commite880418660c80e2f12a123e131975cdb6b12cd13 (patch)
treec78c571bb559291ce80da9b8ba5d41e4cef89f64 /libavcodec/cabac.c
parent668643b9239c70b777aea322eab411ebc960d9a0 (diff)
cabac: remove write-only h264_mps_state[]
Diffstat (limited to 'libavcodec/cabac.c')
-rw-r--r--libavcodec/cabac.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c
index 6ba9303dc1..50f086e6f3 100644
--- a/libavcodec/cabac.c
+++ b/libavcodec/cabac.c
@@ -73,8 +73,6 @@ static const uint8_t lps_range[64][4]= {
{ 6, 8, 9, 11}, { 6, 7, 9, 10}, { 6, 7, 8, 9}, { 2, 2, 2, 2},
};
-static uint8_t h264_mps_state[2 * 64];
-
static const uint8_t mps_state[64]= {
1, 2, 3, 4, 5, 6, 7, 8,
9,10,11,12,13,14,15,16,
@@ -146,10 +144,8 @@ void ff_init_cabac_states(void)
ff_h264_lps_range[j*2*64+2*i+1]= lps_range[i][j];
}
- ff_h264_mlps_state[128+2*i+0]=
- h264_mps_state[2 * i + 0] = 2 * mps_state[i] + 0;
- ff_h264_mlps_state[128+2*i+1]=
- h264_mps_state[2 * i + 1] = 2 * mps_state[i] + 1;
+ ff_h264_mlps_state[128 + 2 * i + 0] = 2 * mps_state[i] + 0;
+ ff_h264_mlps_state[128 + 2 * i + 1] = 2 * mps_state[i] + 1;
if( i ){
ff_h264_mlps_state[128-2*i-1]= 2*lps_state[i]+0;