diff --git a/libavcodec/vble.c b/libavcodec/vble.c
index 1790a39e17080629d3229fc8b226b955a4d4ef66..ae4645b779c83ad291d0fbc647e2e2acc94e19d2 100644
--- a/libavcodec/vble.c
+++ b/libavcodec/vble.c
@@ -94,7 +94,6 @@ static void vble_restore_plane(VBLEContext *ctx, int plane, int offset,
     AVFrame *pic = ctx->avctx->coded_frame;
     uint8_t *dst = pic->data[plane];
     uint8_t *val = ctx->val + offset;
-    uint8_t *len = ctx->len + offset;
     uint8_t a, b, c;
     int stride = pic->linesize[plane];
     int i, j;
@@ -119,7 +118,6 @@ static void vble_restore_plane(VBLEContext *ctx, int plane, int offset,
         }
         dst += stride;
         val += width;
-        len += width;
     }
 }