[FFmpeg-cvslog] Merge commit 'e4d5b55193109d08be47c42d320334546c006b51'

Clément Bœsch git at videolan.org
Sun Mar 19 14:46:56 EET 2017


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sun Mar 19 13:44:04 2017 +0100| [3f049646717f2bd72bbc4278c623dad6ddb7cd9e] | committer: Clément Bœsch

Merge commit 'e4d5b55193109d08be47c42d320334546c006b51'

* commit 'e4d5b55193109d08be47c42d320334546c006b51':
  rangecoder: Kill non-compiling disabled cruft

Merged-by: Clément Bœsch <u at pkh.me>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3f049646717f2bd72bbc4278c623dad6ddb7cd9e
---

 libavcodec/rangecoder.h | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/libavcodec/rangecoder.h b/libavcodec/rangecoder.h
index d36fbd7..c3e81d0 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 */


======================================================================




More information about the ffmpeg-cvslog mailing list