avcodec/cinepak: Add missing const

Found-by: <mkver>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2019-05-02 08:00:46 +02:00
parent d3d1d5936f
commit 7eba264513
1 changed files with 1 additions and 1 deletions

View 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;