[FFmpeg-cvslog] avcodec/cinepak: Add missing const
Michael Niedermayer
git at videolan.org
Thu May 2 09:22:42 EEST 2019
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu May 2 08:00:46 2019 +0200| [7eba264513b3d633d5bdd517faa4910552e58910] | committer: Michael Niedermayer
avcodec/cinepak: Add missing const
Found-by: <mkver>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7eba264513b3d633d5bdd517faa4910552e58910
---
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;
More information about the ffmpeg-cvslog
mailing list