Browse Source

shorten: Fix out of bound writes in fix_bitshift()

The data pointers s->decoded[*] already take into account s->nwrap.

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
tags/n0.9
Laurent Aimar Janne Grunau 14 years ago
parent
commit
5f05cf4ea9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/shorten.c

+ 1
- 1
libavcodec/shorten.c View File

@@ -155,7 +155,7 @@ static void fix_bitshift(ShortenContext *s, int32_t *buffer)


if (s->bitshift != 0) if (s->bitshift != 0)
for (i = 0; i < s->blocksize; i++) for (i = 0; i < s->blocksize; i++)
buffer[s->nwrap + i] <<= s->bitshift;
buffer[i] <<= s->bitshift;
} }






Loading…
Cancel
Save