aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rangecoder.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-08-02 12:02:21 +0200
committerDiego Biurrun <diego@biurrun.de>2016-08-17 12:16:42 +0200
commite4d5b55193109d08be47c42d320334546c006b51 (patch)
treedb272c9fd3f7dc9ca82c03d041b346f86c3628c4 /libavcodec/rangecoder.h
parent00a0419c7f7ebce9010cba93b7ff67c9f1165815 (diff)
downloadffmpeg-e4d5b55193109d08be47c42d320334546c006b51.tar.gz
rangecoder: Kill non-compiling disabled cruft
Diffstat (limited to 'libavcodec/rangecoder.h')
-rw-r--r--libavcodec/rangecoder.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/libavcodec/rangecoder.h b/libavcodec/rangecoder.h
index 4c88169790..2ead446398 100644
--- a/libavcodec/rangecoder.h
+++ b/libavcodec/rangecoder.h
@@ -117,7 +117,6 @@ static inline int get_rac(RangeCoder *c, uint8_t *const state)
int range1 = (c->range * (*state)) >> 8;
c->range -= range1;
-#if 1
if (c->low < c->range) {
*state = c->zero_state[*state];
refill(c);
@@ -129,19 +128,6 @@ static inline int get_rac(RangeCoder *c, uint8_t *const state)
refill(c);
return 1;
}
-#else
- {
- int one_mask one_mask = (c->range - c->low - 1) >> 31;
-
- c->low -= c->range & one_mask;
- c->range += (range1 - c->range) & one_mask;
-
- *state = c->zero_state[(*state) + (256 & one_mask)];
- }
- refill(c);
-
- return one_mask & 1;
-#endif
}
#endif /* AVCODEC_RANGECODER_H */