[FFmpeg-devel] [PATCH] avcodec/cinepak: Add missing const qualifier
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Thu May 2 07:27:22 EEST 2019
Has been forgotten in b606493717db6424d693e1a944f51171e9e72905.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
libavcodec/cinepak.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.21.0
More information about the ffmpeg-devel
mailing list