aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/golomb.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-07-30 14:52:20 +0200
committerDiego Biurrun <diego@biurrun.de>2016-08-17 12:22:29 +0200
commit83b92a855e8e08bdec484e13ee5a7c8996224772 (patch)
treee4c730e32eb27dee863a0f785b7bf1ef6984f870 /libavcodec/golomb.h
parent014852e932dab6e9cf2a53e7a17ce8321f3e922c (diff)
downloadffmpeg-83b92a855e8e08bdec484e13ee5a7c8996224772.tar.gz
golomb: Drop disabled cruft
Diffstat (limited to 'libavcodec/golomb.h')
-rw-r--r--libavcodec/golomb.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h
index 2d0be89e35..bf80fae117 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);
}