diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-09-30 05:26:22 +0400 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2011-10-07 18:25:31 +0400 |
commit | 5f05cf4ea9aaafed8edcabe785c2719786103ec1 (patch) | |
tree | 1a332c23063df9c904d4e1063cdec66095327ff2 /libavcodec/shorten.c | |
parent | 172060328771d149b076f00352b004b5b5272d38 (diff) |
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>
Diffstat (limited to 'libavcodec/shorten.c')
-rw-r--r-- | libavcodec/shorten.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c index 8f7436e0a9..22c5c0a152 100644 --- a/libavcodec/shorten.c +++ b/libavcodec/shorten.c @@ -155,7 +155,7 @@ static void fix_bitshift(ShortenContext *s, int32_t *buffer) if (s->bitshift != 0) for (i = 0; i < s->blocksize; i++) - buffer[s->nwrap + i] <<= s->bitshift; + buffer[i] <<= s->bitshift; } |