aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/shorten.c
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2011-09-30 00:05:53 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-30 04:14:23 +0200
commitf42b3195d3f2692a4dfc0a8668bb4ac35301f2ed (patch)
tree2ae8f45e6d9abf2a0e0f241c34a904ada5963252 /libavcodec/shorten.c
parentc3299726874829e8eb7a937c247956ab3c2ccae6 (diff)
downloadffmpeg-f42b3195d3f2692a4dfc0a8668bb4ac35301f2ed.tar.gz
Fix out of bound writes in fix_bitshift() of the shorten decoder.
The data pointers s->decoded[*] already take into account s->nwrap. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/shorten.c')
-rw-r--r--libavcodec/shorten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c
index b39fcbd0ef..f46b21fc8e 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;
}