projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd71af9
)
takdec: fix initialisation of LOCAL_ALIGNED array
author
Josh Allmann
<joshua.allmann@gmail.com>
Fri, 7 Dec 2012 23:00:30 +0000
(
00:00
+0100)
committer
Janne Grunau
<janne-libav@jannau.net>
Fri, 7 Dec 2012 23:00:30 +0000
(
00:00
+0100)
When LOCAL_ALIGNED uses manual alignment initialisation is not
possible.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
libavcodec/takdec.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/takdec.c
b/libavcodec/takdec.c
index
0ac870c
..
d47db48
100644
(file)
--- a/
libavcodec/takdec.c
+++ b/
libavcodec/takdec.c
@@
-601,10
+601,12
@@
static int decorrelate(TAKDecContext *s, int c1, int c2, int length)
case 6:
FFSWAP(int32_t*, p1, p2);
case 7: {
- LOCAL_ALIGNED_16(int16_t, filter, [MAX_PREDICTORS])
= { 0 }
;
+ LOCAL_ALIGNED_16(int16_t, filter, [MAX_PREDICTORS]);
int length2, order_half, filter_order, dval1, dval2;
int av_uninit(code_size);
+ memset(filter, 0, MAX_PREDICTORS * sizeof(*filter));
+
if (length < 256)
return AVERROR_INVALIDDATA;