ffmpeg | branch: master | Michael Niedermayer <mich...@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 <mich...@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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to