diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 23a3d91df6369c0385a175348832dfb4fa3b1838..090b4f606d7966df816eb04fc9d79ed02512fce4 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -4370,7 +4370,7 @@ static int vc1_decode_frame(AVCodecContext *avctx,
         buf2 = av_mallocz(buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
 
         if(IS_MARKER(AV_RB32(buf))){ /* frame starts with marker and needs to be parsed */
-            uint8_t *dst = buf2, *start, *end, *next;
+            uint8_t *start, *end, *next;
             int size;
 
             next = buf;