git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
874c8a1
)
atrac3: set the getbits context the right buffer_end
author
Luca Barbato
<lu_zero@gentoo.org>
Tue, 9 Jul 2013 02:20:23 +0000
(
04:20
+0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Tue, 9 Jul 2013 08:49:29 +0000
(10:49 +0200)
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/atrac3.c
patch
|
blob
|
history
diff --git
a/libavcodec/atrac3.c
b/libavcodec/atrac3.c
index
dbdf77c
..
cd120e9
100644
(file)
--- 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],