aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/atrac3.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-14 11:30:18 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-14 11:30:23 +0200
commitcb198f945fdc69d814aebfd6e493021941b9289f (patch)
tree944714e546b067de3b6b4ca5fa7540e020eb118d /libavcodec/atrac3.c
parente27bc85b31eec26f6dca2536d8057f6f9ebaac41 (diff)
parente06623c48030530b50f00cee26f1a3a33c4b4d4b (diff)
downloadffmpeg-cb198f945fdc69d814aebfd6e493021941b9289f.tar.gz
Merge commit 'e06623c48030530b50f00cee26f1a3a33c4b4d4b' into release/0.10
* commit 'e06623c48030530b50f00cee26f1a3a33c4b4d4b': atrac3: set the getbits context the right buffer_end Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/atrac3.c')
-rw-r--r--libavcodec/atrac3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 460afbe77c..4ae2a27d05 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -773,7 +773,7 @@ static int decodeFrame(ATRAC3Context *q, const uint8_t* databuf,
/* set the bitstream reader at the start of the second Sound Unit*/
- init_get_bits(&q->gb,ptr1,q->bits_per_frame);
+ init_get_bits(&q->gb, ptr1, (q->bytes_per_frame - i) * 8);
/* Fill the Weighting coeffs delay buffer */
memmove(q->weighting_delay,&(q->weighting_delay[2]),4*sizeof(int));