]> git.sesse.net Git - ffmpeg/commitdiff
ffv1: Remove broken disabled cruft
authorDiego Biurrun <diego@biurrun.de>
Sat, 30 Jul 2016 13:00:32 +0000 (15:00 +0200)
committerDiego Biurrun <diego@biurrun.de>
Wed, 17 Aug 2016 10:16:42 +0000 (12:16 +0200)
libavcodec/ffv1dec.c
libavcodec/ffv1enc.c

index b72a9398773b405efadb0159ffd7cc99a7a39fdc..d3169ec7c52ae400797ffe4adaaf1440dc01e60a 100644 (file)
@@ -83,12 +83,7 @@ static inline int get_vlc_symbol(GetBitContext *gb, VlcState *const state,
     ff_dlog(NULL, "v:%d bias:%d error:%d drift:%d count:%d k:%d",
             v, state->bias, state->error_sum, state->drift, state->count, k);
 
-#if 0 // JPEG LS
-    if (k == 0 && 2 * state->drift <= -state->count)
-        v ^= (-1);
-#else
     v ^= ((2 * state->drift + state->count) >> 31);
-#endif
 
     ret = fold(v + state->bias, bits);
 
index 3bc22ed1e51a497c22eb18d3ebb4c4c8c7df6ba0..0eeccfffb4f0668b75d7b5c4a002739eb8d48a39 100644 (file)
@@ -151,14 +151,7 @@ static inline void put_vlc_symbol(PutBitContext *pb, VlcState *const state,
 
     assert(k <= 13);
 
-#if 0 // JPEG LS
-    if (k == 0 && 2 * state->drift <= -state->count)
-        code = v ^ (-1);
-    else
-        code = v;
-#else
     code = v ^ ((2 * state->drift + state->count) >> 31);
-#endif
 
     ff_dlog(NULL, "v:%d/%d bias:%d error:%d drift:%d count:%d k:%d\n", v, code,
             state->bias, state->error_sum, state->drift, state->count, k);