Message ID | 20190502042722.49372-1-andreas.rheinhardt@gmail.com |
---|---|
State | Accepted |
Commit | 7eba264513b3d633d5bdd517faa4910552e58910 |
Headers | show |
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
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 --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;
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(-)