summaryrefslogtreecommitdiff
path: root/libavcodec/cinepak.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-05-02 08:00:46 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-05-02 08:20:30 +0200
commit7eba264513b3d633d5bdd517faa4910552e58910 (patch)
tree0088323ac1e207067ddb3f6edfea1f38a430e6f5 /libavcodec/cinepak.c
parentd3d1d5936fdc9a351d6d1aac8405292dfb14c831 (diff)
downloadffmpeg-7eba264513b3d633d5bdd517faa4910552e58910.tar.gz
avcodec/cinepak: Add missing const
Found-by: <mkver> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/cinepak.c')
-rw-r--r--libavcodec/cinepak.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cinepak.c b/libavcodec/cinepak.c
index d26c505222..a5132ddbc0 100644
--- a/libavcodec/cinepak.c
+++ b/libavcodec/cinepak.c
@@ -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;