diff mbox

[FFmpeg-devel] avcodec/cinepak: Add missing const qualifier

Message ID 20190502042722.49372-1-andreas.rheinhardt@gmail.com
State Accepted
Commit 7eba264513b3d633d5bdd517faa4910552e58910
Headers show

Commit Message

Andreas Rheinhardt May 2, 2019, 4:27 a.m. UTC
Has been forgotten in b606493717db6424d693e1a944f51171e9e72905.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/cinepak.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer May 2, 2019, 5:30 p.m. UTC | #1
On Thu, May 02, 2019 at 06:27:22AM +0200, Andreas Rheinhardt wrote:
> Has been forgotten in b606493717db6424d693e1a944f51171e9e72905.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
> ---
>  libavcodec/cinepak.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

fixed as someone on IRC pinged about it before i saw the patch
Andreas Rheinhardt May 2, 2019, 5:33 p.m. UTC | #2
Michael Niedermayer:
> On Thu, May 02, 2019 at 06:27:22AM +0200, Andreas Rheinhardt wrote:
>> Has been forgotten in b606493717db6424d693e1a944f51171e9e72905.
>>
>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
>> ---
>>  libavcodec/cinepak.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> fixed as someone on IRC pinged about it before i saw the patch
> 
That was actually me.

- Andreas/mkver
diff mbox

Patch

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;