Commit 7eba2645 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/cinepak: Add missing const

Found-by: <mkver>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent d3d1d593
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment