avcodec/cinepak: Add missing const
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 2 May 2019 06:00:46 +0000 (08:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 2 May 2019 06:20:30 +0000 (08:20 +0200)
Found-by: <mkver>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/cinepak.c

index d26c505..a5132dd 100644 (file)
@@ -354,7 +354,7 @@ static int cinepak_predecode_check (CinepakContext *s)
         return AVERROR_INVALIDDATA;
 
     if (num_strips) {
-        uint8_t *data = s->data + 10 + s->sega_film_skip_bytes;
+        const uint8_t *data = s->data + 10 + s->sega_film_skip_bytes;
         int strip_size = AV_RB24 (data + 1);
         if (strip_size < 12 || strip_size > encoded_buf_size)
             return AVERROR_INVALIDDATA;