diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-07-09 04:20:23 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-09-13 15:44:49 +0200 |
commit | e06623c48030530b50f00cee26f1a3a33c4b4d4b (patch) | |
tree | f493d7155458eb0fd9a6110cf42cd4a3684c2ebc | |
parent | 09a098fb8bc7d70a0258b3e8d658833c8d11debe (diff) | |
download | ffmpeg-e06623c48030530b50f00cee26f1a3a33c4b4d4b.tar.gz |
atrac3: set the getbits context the right buffer_end
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit 22e76ec635bafdd1d1ec35581a7ac09e69e3c43e)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Conflicts:
libavcodec/atrac3.c
-rw-r--r-- | libavcodec/atrac3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c index e0702a9a66..cc0cc7c099 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)); |