summaryrefslogtreecommitdiff
path: root/libavcodec/cabac.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-12-27 12:25:18 +0100
committerDiego Biurrun <diego@biurrun.de>2012-01-04 01:09:53 +0100
commite451c26c5f0bff9ced74ff6dfa3fce111fed1dbb (patch)
treee8942afdcb5147798fea3a72c6a389def97b2a00 /libavcodec/cabac.c
parent9785082c15360303510059a79b61c88c489548c5 (diff)
cabac: drop unused STRICT_LIMITS code branch
Diffstat (limited to 'libavcodec/cabac.c')
-rw-r--r--libavcodec/cabac.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c
index 57ab395ed7..25713ee3ea 100644
--- a/libavcodec/cabac.c
+++ b/libavcodec/cabac.c
@@ -109,10 +109,6 @@ void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size){
c->low= 0;
c->range= 0x1FE;
c->outstanding_count= 0;
-#ifdef STRICT_LIMITS
- c->sym_count =0;
-#endif
-
c->pb.bit_left++; //avoids firstBitFlag
}
@@ -179,10 +175,6 @@ static void put_cabac(CABACContext *c, uint8_t * const state, int bit){
}
renorm_cabac_encoder(c);
-
-#ifdef STRICT_LIMITS
- c->symCount++;
-#endif
}
/**
@@ -204,10 +196,6 @@ static void put_cabac_bypass(CABACContext *c, int bit){
put_cabac_bit(c, 1);
c->low -= 0x400;
}
-
-#ifdef STRICT_LIMITS
- c->symCount++;
-#endif
}
/**
@@ -232,10 +220,6 @@ static int put_cabac_terminate(CABACContext *c, int bit){
flush_put_bits(&c->pb); //FIXME FIXME FIXME XXX wrong
}
-#ifdef STRICT_LIMITS
- c->symCount++;
-#endif
-
return (put_bits_count(&c->pb)+7)>>3;
}