]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vp9block.c
v210: Add avx2 version of the 10-bit line encoder
[ffmpeg] / libavcodec / vp9block.c
index caf3bcc2ae0cc4c09f0125cf452e57e26444ae40..a92c794ebf7fd3b423deda30c0d1147b88386f6d 100644 (file)
@@ -71,7 +71,8 @@ static void decode_mode(VP9Context *s, VP9Block *const b)
                 vp56_rac_get_prob_branchy(&s->c,
                                           s->prob.segpred[s->above_segpred_ctx[col] +
                                                           s->left_segpred_ctx[row7]]))) {
-        int pred = 8, x;
+        int pred = MAX_SEGMENT - 1;
+        int x;
 
         for (y = 0; y < h4; y++)
             for (x = 0; x < w4; x++)