]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ffv1enc.c
qsv{dec,enc}: always use an internal mfxFrameSurface1
[ffmpeg] / libavcodec / ffv1enc.c
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);