aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-07-09 04:20:23 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-07-09 10:49:29 +0200
commit22e76ec635bafdd1d1ec35581a7ac09e69e3c43e (patch)
tree85ede03d3c04c4f40ea59a7ab5eacbe459fddae9 /libavcodec
parent874c8a17ac9b04fb7ac23d003e54e3662dd23b4e (diff)
downloadffmpeg-22e76ec635bafdd1d1ec35581a7ac09e69e3c43e.tar.gz
atrac3: set the getbits context the right buffer_end
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/atrac3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index dbdf77ca25..cd120e9f6a 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -742,7 +742,7 @@ static int decode_frame(AVCodecContext *avctx, const uint8_t *databuf,
/* set the bitstream reader at the start of the second Sound Unit*/
- init_get_bits(&q->gb, ptr1, avctx->block_align * 8);
+ init_get_bits(&q->gb, ptr1, (avctx->block_align - i) * 8);
/* Fill the Weighting coeffs delay buffer */
memmove(q->weighting_delay, &q->weighting_delay[2],