[FFmpeg-cvslog] golomb: Drop disabled cruft

Diego Biurrun git at videolan.org
Sun Mar 19 17:13:22 EET 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Sat Jul 30 14:52:20 2016 +0200| [83b92a855e8e08bdec484e13ee5a7c8996224772] | committer: Diego Biurrun

golomb: Drop disabled cruft

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

 libavcodec/golomb.h | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h
index 2d0be89..bf80fae 100644
--- a/libavcodec/golomb.h
+++ b/libavcodec/golomb.h
@@ -463,12 +463,6 @@ static inline void set_ue_golomb(PutBitContext *pb, int i)
 {
     assert(i >= 0);
 
-#if 0
-    if (i = 0) {
-        put_bits(pb, 1, 1);
-        return;
-    }
-#endif
     if (i < 256)
         put_bits(pb, ff_ue_golomb_len[i], i + 1);
     else {
@@ -496,19 +490,9 @@ static inline void set_te_golomb(PutBitContext *pb, int i, int range)
  */
 static inline void set_se_golomb(PutBitContext *pb, int i)
 {
-#if 0
-    if (i <= 0)
-        i = -2 * i;
-    else
-        i = 2 * i - 1;
-#elif 1
     i = 2 * i - 1;
     if (i < 0)
         i ^= -1;    //FIXME check if gcc does the right thing
-#else
-    i  = 2 * i - 1;
-    i ^= (i >> 31);
-#endif
     set_ue_golomb(pb, i);
 }
 



More information about the ffmpeg-cvslog mailing list