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 22e76ec635)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
8f3fe7c696
commit
67a8a1c202
1 changed files with 1 additions and 1 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue