]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/lagarithrac.c
svq3: rip out the svq3-relevant parts of pred_motion() out of h264
[ffmpeg] / libavcodec / lagarithrac.c
index edfb18fb746851f4c7dc83ee937976ef6de48535..f9e4e5c9288ccc799b5ca4c1457428451e292f19 100644 (file)
@@ -45,7 +45,7 @@ void ff_lag_rac_init(lag_rac *l, GetBitContext *gb, int length)
 
     l->range        = 0x80;
     l->low          = *l->bytestream >> 1;
-    l->hash_shift   = FFMAX(l->scale - 8, 0);
+    l->hash_shift   = FFMAX(l->scale, 8) - 8;
 
     for (i = j = 0; i < 256; i++) {
         unsigned r = i << l->hash_shift;